Skip to content

@mega-yfue/eufy-sdk / DiscoverOptions

Interface: DiscoverOptions

Properties

candidateIps?

ts
optional candidateIps?: string[];

Previously-seen-good IPs to probe alongside a fresh DNS resolution.


clientIdFor

ts
clientIdFor: (ip) => string;

Build a fresh client_id per attempt (the real client_id includes a connect timestamp).

Parameters

ip

string

Returns

string


perAttemptTimeoutMs?

ts
optional perAttemptTimeoutMs?: number;

stopOnFirstGrant?

ts
optional stopOnFirstGrant?: boolean;

Stop at the first granted SUBSCRIBE instead of probing every candidate.


topic

ts
topic: string;

The device's .../res topic to subscribe (never a /req topic — this module doesn't publish).

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.