edgeport - v1.0.3
    Preparing search index...

    Function encodePubRec

    • Encodes a PUBREC packet (QoS 2, part 1: publish received).

      Parameters

      • packetId: number

        The packet identifier of the PUBLISH being received.

      Returns Uint8Array

      The PUBREC bytes.

      1.0.0

      import { encodePubRec } from 'edgeport/mqtt';

      const bytes = encodePubRec(7);