-
public interface ISubDevListener
-
-
Method Summary
Modifier and Type Method Description abstract void
onSubDevDpUpdate(String nodeId, String dps)
On sub-device data points code updated. abstract void
onSubDevRemoved(String devId)
On sub-device removed. abstract void
onSubDevAdded(String devId)
On sub-device added. abstract void
onSubDevInfoUpdate(String devId)
On sub-device info updated.(like name and so on). abstract void
onSubDevStatusChanged(List<String> onlineDeviceIds, List<String> offlineDeviceIds)
On sub-devices online/offline. -
-
Method Detail
-
onSubDevDpUpdate
abstract void onSubDevDpUpdate(String nodeId, String dps)
On sub-device data points code updated.
- Parameters:
nodeId
- Sub-device nodeId, nodeId field in sub-device's DeviceBeandps
- The data points code changed, the format like {"101": true}
-
onSubDevRemoved
abstract void onSubDevRemoved(String devId)
On sub-device removed.
- Parameters:
devId
- Sub-device id
-
onSubDevAdded
abstract void onSubDevAdded(String devId)
On sub-device added.
- Parameters:
devId
- Sub-device id
-
onSubDevInfoUpdate
abstract void onSubDevInfoUpdate(String devId)
On sub-device info updated.(like name and so on).
- Parameters:
devId
- Sub-device id
-
onSubDevStatusChanged
abstract void onSubDevStatusChanged(List<String> onlineDeviceIds, List<String> offlineDeviceIds)
On sub-devices online/offline. If the sub-device is powered off or disconnected from the network,the server will call back to this method after 3 minutes.
- Parameters:
onlineDeviceIds
- The list of online sub-device id.offlineDeviceIds
- The list of offline sub-device id.
-
-
-
-