-
public interface IMeshDeviceListener
Callback for device reporting data.
-
-
Method Summary
Modifier and Type Method Description abstract void
onDpUpdate(String nodeId, Map<String, Object> dpStr, boolean isFromLocal)
The updated dps of device. abstract void
onStatusChanged(List<String> onlines, List<String> offlines, String fromGwId)
The online status of devices. abstract void
onNetworkStatusChanged(String meshId, boolean status)
The network status of device. abstract void
onRawDataUpdate(Array<byte> rawData)
Byte array type data reported by the device. abstract void
onDevInfoUpdate(String devId)
Device info updated, such as device name, device icon, etc. abstract void
onRemoved(String devId)
Removed from the server. -
-
Method Detail
-
onDpUpdate
abstract void onDpUpdate(String nodeId, Map<String, Object> dpStr, boolean isFromLocal)
The updated dps of device.
- Parameters:
nodeId
- Thing nodeId com.thingclips.smart.sdk.bean.DeviceBeandpStr
- Key for dp id, value for dp valueisFromLocal
- If the dps come from local, this value is true
-
onStatusChanged
abstract void onStatusChanged(List<String> onlines, List<String> offlines, String fromGwId)
The online status of devices.
- Parameters:
onlines
- Online nodeIds of deviceofflines
- Offline nodeIds of devicefromGwId
- If the status come from a gateway, then the devId of the gateway represented by this parameter, otherwise it is empty
-
onNetworkStatusChanged
abstract void onNetworkStatusChanged(String meshId, boolean status)
The network status of device.
- Parameters:
meshId
- Thing meshId com.thingclips.smart.sdk.bean.DeviceBeanstatus
- True means network is available, false means network is not available.
-
onRawDataUpdate
abstract void onRawDataUpdate(Array<byte> rawData)
Byte array type data reported by the device.
- Parameters:
rawData
- Byte array type data
-
onDevInfoUpdate
abstract void onDevInfoUpdate(String devId)
Device info updated, such as device name, device icon, etc.
- Parameters:
devId
- Thing devId com.thingclips.smart.sdk.bean.DeviceBean
-
onRemoved
abstract void onRemoved(String devId)
Removed from the server.
- Parameters:
devId
- Thing devId com.thingclips.smart.sdk.bean.DeviceBean
-
-
-
-