-
public interface IDevListener
The device status change listener.
-
-
Method Summary
Modifier and Type Method Description abstract void
onDpUpdate(String devId, String dpStr)
On device data points code updated abstract void
onRemoved(String devId)
On device removed abstract void
onStatusChanged(String devId, boolean online)
On device online/offline. abstract void
onNetworkStatusChanged(String devId, boolean status)
On network status changed abstract void
onDevInfoUpdate(String devId)
On device info updated.(like name and so on). -
-
Method Detail
-
onDpUpdate
abstract void onDpUpdate(String devId, String dpStr)
On device data points code updated
- Parameters:
devId
- Device iddpStr
- The data points changed, the format like {"101": true}
-
onRemoved
abstract void onRemoved(String devId)
On device removed
- Parameters:
devId
- Device id
-
onStatusChanged
abstract void onStatusChanged(String devId, boolean online)
On device online/offline. If the device is powered off or disconnected from the network,the server will call back to this method after 3 minutes.
- Parameters:
devId
- Device idonline
- Is the device online
-
onNetworkStatusChanged
abstract void onNetworkStatusChanged(String devId, boolean status)
On network status changed
- Parameters:
devId
- Device idstatus
- Is the network available
-
onDevInfoUpdate
abstract void onDevInfoUpdate(String devId)
On device info updated.(like name and so on).
- Parameters:
devId
- Device id
-
-
-
-