edgeport - v1.0.3
    Preparing search index...

    Function encodePubComp

    • Encodes a PUBCOMP packet (QoS 2, part 3: publish complete).

      Parameters

      • packetId: number

        The packet identifier being completed.

      Returns Uint8Array

      The PUBCOMP bytes.

      1.0.0

      import { encodePubComp } from 'edgeport/mqtt';

      const bytes = encodePubComp(7);