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.
0x2
The packet identifier being released.
The PUBREL bytes.
1.0.0
import { encodePubRel } from 'edgeport/mqtt';const bytes = encodePubRel(7); Copy
import { encodePubRel } from 'edgeport/mqtt';const bytes = encodePubRel(7);
Encodes a PUBREL packet (QoS 2, part 2: publish release).
PUBREL carries a reserved flags nibble of
0x2per the spec, unlike the other id-only acks.