@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
opts
clientId
string
timeoutMs?
number
topic
string
Returns
Promise<ProbeResult>