Skip to content

@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

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.