edgeport - v1.0.3
    Preparing search index...

    Function encodePubRel

    • Encodes a PUBREL packet (QoS 2, part 2: publish release).

      PUBREL carries a reserved flags nibble of 0x2 per the spec, unlike the other id-only acks.

      Parameters

      • packetId: number

        The packet identifier being released.

      Returns Uint8Array

      The PUBREL bytes.

      1.0.0

      import { encodePubRel } from 'edgeport/mqtt';

      const bytes = encodePubRel(7);