Encodes a PINGREQ packet (keep-alive request).
The two-byte PINGREQ packet.
1.0.0
import { encodePingReq } from 'edgeport/mqtt';const bytes = encodePingReq(); // Uint8Array [0xc0, 0x00] Copy
import { encodePingReq } from 'edgeport/mqtt';const bytes = encodePingReq(); // Uint8Array [0xc0, 0x00]
Encodes a PINGREQ packet (keep-alive request).