Skip to content

@mega-yfue/eufy-sdk / probeBrokerInstance

Function: probeBrokerInstance()

ts
function probeBrokerInstance(
   ip, 
   creds, 
   opts
): Promise<ProbeResult>;

Probe ONE candidate IP: connect, SUBSCRIBE to topic, record whether it was granted, then disconnect. Never publishes anything — this function cannot actuate a device.

The probe presents the account's client certificate, so it verifies the instance it dials: the TLS options come from ./bare-ip-tls.ts, which checks the presented certificate against creds.hostname rather than the IP.

Parameters

ip

string

creds

BrokerCredentials

opts

clientId

string

timeoutMs?

number

topic

string

Returns

Promise<ProbeResult>

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.