@mega-yfue/eufy-sdk / p2pCodec / buildRelayPacketPayload
Function: buildRelayPacketPayload()
ts
function buildRelayPacketPayload(handle, p2pDid): Buffer;RLY_PKT payload: [handle:4 BE][p2pDid:20][role:1][pad:3]; a connecting client's role byte is 0.
Parameters
handle
number
p2pDid
string
Returns
Buffer