-
public interface IDeviceListener
The agent of IDevListener
-
-
Method Summary
Modifier and Type Method Description abstract void
onDpUpdate(String devId, Map<String, Object> 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, Map<String, Object> dpStr)
On device data points code updated
- Parameters:
devId
- Device iddpStr
- Data points code map
-
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
- 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
-
-
-
-