Skip to content

@mega-yfue/eufy-sdk / p2pCodec / ResponseMessageType

Variable: ResponseMessageType ​

ts
const ResponseMessageType: object;

Type Declaration ​

ACK ​

ts
readonly ACK: Buffer<ArrayBuffer>;

CAM_ADDR ​

ts
readonly CAM_ADDR: Buffer<ArrayBuffer>;

The device's own address record, sent in answer to CHECK_CAM ahead of CAM_ID: its 20-byte device id, one record in encodeAddress's shape naming the address it answers from, then 8 zero bytes (44-byte payload).

CAM_ID ​

ts
readonly CAM_ID: Buffer<ArrayBuffer>;

DATA ​

ts
readonly DATA: Buffer<ArrayBuffer>;

END ​

ts
readonly END: Buffer<ArrayBuffer>;

LIST_REQ_ACK ​

ts
readonly LIST_REQ_ACK: Buffer<ArrayBuffer>;

The relay servers a cloud lookup server names: [count:1][pad:3] then count address records.

LOCAL_LOOKUP_RESP ​

ts
readonly LOCAL_LOOKUP_RESP: Buffer<ArrayBuffer>;

LOOKUP_ADDR ​

ts
readonly LOOKUP_ADDR: Buffer<ArrayBuffer>;

P2P_REQ_ACK ​

ts
readonly P2P_REQ_ACK: Buffer<ArrayBuffer>;

A lookup server's answer to a P2P request: [result:1] first, 0 when the request is accepted.

PING ​

ts
readonly PING: Buffer<ArrayBuffer>;

PONG ​

ts
readonly PONG: Buffer<ArrayBuffer>;

RLY_HELLO_ACK ​

ts
readonly RLY_HELLO_ACK: Buffer<ArrayBuffer>;

RLY_PORT_ACK ​

ts
readonly RLY_PORT_ACK: Buffer<ArrayBuffer>;

A relay's answer to RLY_PORT: [mark:4 BE][port:2 BE][pad:2], the port being the one it relays on.

RLY_RDY ​

ts
readonly RLY_RDY: Buffer<ArrayBuffer>;

A relay reporting the path to the device ready: the device's 20-byte id, sent from the relay endpoint.

RLY_REQ_ACK ​

ts
readonly RLY_REQ_ACK: Buffer<ArrayBuffer>;

RLY_TO ​

ts
readonly RLY_TO: Buffer<ArrayBuffer>;

A relay endpoint to register with: one address record, then [handle:4 BE].

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.