Skip to content

@mega-yfue/eufy-sdk / mqttScopeFor

Function: mqttScopeFor()

ts
function mqttScopeFor(device): MqttScope;

The credential scope a device's topics are granted under. Derived from EufyDevice.category — a device record field, not a capability — so this stays on the transport side of the boundary.

Parameters

device

EufyDevice

Returns

MqttScope

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.