edgeport - v1.0.3
    Preparing search index...

    Function encodePubAck

    • Encodes a PUBACK packet (the QoS 1 acknowledgement).

      Parameters

      • packetId: number

        The packet identifier of the PUBLISH being acknowledged.

      Returns Uint8Array

      The PUBACK bytes.

      1.0.0

      import { encodePubAck } from 'edgeport/mqtt';

      const bytes = encodePubAck(7);