@mega-yfue/eufy-sdk / subscribeTopics
Function: subscribeTopics()
ts
function subscribeTopics(device): readonly string[];Every topic to subscribe for a device's inbound traffic.
eufy_life (smart lights) gets the app's full four-topic set: /app/res (the state channel), /res (present in the app's subscribe list but observed to carry nothing on this line), synq/…/state_info (online/offline), and /app/ota/res (OTA progress).
Clean-line devices (vacuum/mower) subscribe four topics on the eufy_home prefix:
cmd/…/res— device→app DP reports and command replies (confirmed live on T2351)biz/…/res— cloud→app business-layer responses (TopicManager.getBizReqTopic())biz/…/req— cloud ACKs for app→cloud business requests (subscribe for ACKs)dt/…/param_info— device-twin parameter push
Every other line subscribes /res alone.
Parameters
device
Returns
readonly string[]