Encodes a PUBREC packet (QoS 2, part 1: publish received).
The packet identifier of the PUBLISH being received.
The PUBREC bytes.
1.0.0
import { encodePubRec } from 'edgeport/mqtt';const bytes = encodePubRec(7); Copy
import { encodePubRec } from 'edgeport/mqtt';const bytes = encodePubRec(7);
Encodes a PUBREC packet (QoS 2, part 1: publish received).