-
public interface IMeshLocalController
author : yuzhouxu date : 2021/7/7 20:50 description :mesh local Control
-
-
Method Summary
Modifier and Type Method Description abstract void
publishDps(DeviceBean deviceBean, String nodeId, String pcc, String dps, IResultCallback callback)
Send mesh message to a device. abstract void
publishDps(DeviceBean deviceBean, String nodeId, String pcc, String dps, boolean ack, IResultCallback callback)
Send mesh message to a device. abstract void
getDpList(DeviceBean deviceBean, String nodeId, String pcc, String dps, boolean ack, IResultCallback callback)
abstract void
multicastDps(String localId, String pcc, String dps, Map<String, SchemaBean> schemaMap, IResultCallback callback)
Send mesh message to a group address. abstract void
querySubDevStatusByLocal(String pcc, String nodeId, IResultCallback callback)
Query all status of current mesh device by local. abstract void
switchProxyState(DeviceBean deviceBean, boolean openState, IResultCallback callback)
abstract void
switchRelayState(DeviceBean deviceBean, boolean openState, IResultCallback callback)
abstract void
removeMeshSubDev(String pcc, String nodeId, String devKey, IResultCallback callback)
Delete device from local. abstract void
queryAllOnLineStatusByLocal(IResultCallback callback)
Query local online status of all sub-devices. abstract void
publishCommands(DeviceBean deviceBean, Map<String, Object> commands, IResultCallback callback)
Send mesh message by standard dpCode. abstract void
sendCommand(SendCommandParams sendCommandParams, IResultCallback callback, boolean withTid)
Send mesh message to a device. abstract void
sendCommand(SendCommandParams sendCommandParams, IResultCallback callback)
Send mesh message to a device. abstract void
passThroughByLocal(String meshId, String nodeId, int modelId, int opCode, int backOpCode, Array<byte> param, boolean isAck, IResultCallback callback)
A local pass-through channel for vendor model abstract void
onDestroy()
Recycle and destroy resources, such as cache. abstract void
queryOfflineDeviceStatusByLocal(IResultCallback callback)
Only query the online status of offline devices abstract void
queryAllMeshSubDeviceStatusByLocal(IResultCallback callback)
Directly query the status of all sub-device under the mesh -
-
Method Detail
-
publishDps
abstract void publishDps(DeviceBean deviceBean, String nodeId, String pcc, String dps, IResultCallback callback)
Send mesh message to a device.
- Parameters:
nodeId
- Thing node id getNodeIdpcc
- Category of device getCategorydps
- Thing dpscallback
- Callback for send result IResultCallback
-
publishDps
abstract void publishDps(DeviceBean deviceBean, String nodeId, String pcc, String dps, boolean ack, IResultCallback callback)
Send mesh message to a device.
- Parameters:
nodeId
- Thing node id getNodeIdpcc
- Category of device getCategorydps
- Thing dpscallback
- Callback for send result IResultCallback
-
getDpList
abstract void getDpList(DeviceBean deviceBean, String nodeId, String pcc, String dps, boolean ack, IResultCallback callback)
-
multicastDps
abstract void multicastDps(String localId, String pcc, String dps, Map<String, SchemaBean> schemaMap, IResultCallback callback)
Send mesh message to a group address.
- Parameters:
localId
- Mesh group addresspcc
- Category of device getCategorydps
- Thing dpscallback
- Callback for send result IResultCallback
-
querySubDevStatusByLocal
abstract void querySubDevStatusByLocal(String pcc, String nodeId, IResultCallback callback)
Query all status of current mesh device by local.
- Parameters:
pcc
- Thing category DeviceBeannodeId
- Thing nodeId DeviceBeancallback
- Callback for send result IResultCallback
-
switchProxyState
abstract void switchProxyState(DeviceBean deviceBean, boolean openState, IResultCallback callback)
-
switchRelayState
abstract void switchRelayState(DeviceBean deviceBean, boolean openState, IResultCallback callback)
-
removeMeshSubDev
abstract void removeMeshSubDev(String pcc, String nodeId, String devKey, IResultCallback callback)
Delete device from local.
- Parameters:
pcc
- getCategory}nodeId
- getNodeIddevKey
- getDevKeycallback
- Callback for result IResultCallback
-
queryAllOnLineStatusByLocal
abstract void queryAllOnLineStatusByLocal(IResultCallback callback)
Query local online status of all sub-devices.
- Parameters:
callback
- Callback for send result IResultCallback
-
publishCommands
abstract void publishCommands(DeviceBean deviceBean, Map<String, Object> commands, IResultCallback callback)
Send mesh message by standard dpCode.
- Parameters:
deviceBean
- DeviceBean}commands
- dps mapcallback
- Callback for result IResultCallback
-
sendCommand
abstract void sendCommand(SendCommandParams sendCommandParams, IResultCallback callback, boolean withTid)
Send mesh message to a device.
- Parameters:
sendCommandParams
- SendCommandParams}callback
- Callback for result IResultCallback
-
sendCommand
abstract void sendCommand(SendCommandParams sendCommandParams, IResultCallback callback)
Send mesh message to a device.
- Parameters:
sendCommandParams
- SendCommandParams}callback
- Callback for result IResultCallback
-
passThroughByLocal
abstract void passThroughByLocal(String meshId, String nodeId, int modelId, int opCode, int backOpCode, Array<byte> param, boolean isAck, IResultCallback callback)
A local pass-through channel for vendor model
- Parameters:
meshId
- Thing meshId com.thingclips.smart.sdk.bean.DeviceBeannodeId
- Thing nodeId com.thingclips.smart.sdk.bean.DeviceBeanmodelId
- Vendor model idopCode
- Vendor model opcodeparam
- Parameter for sendcallback
- If the message is sent successfully, the onSuccess method will be called back IResultCallback
-
onDestroy
abstract void onDestroy()
Recycle and destroy resources, such as cache.
-
queryOfflineDeviceStatusByLocal
abstract void queryOfflineDeviceStatusByLocal(IResultCallback callback)
Only query the online status of offline devices
- Parameters:
callback
- Callback for send result IResultCallback
-
queryAllMeshSubDeviceStatusByLocal
abstract void queryAllMeshSubDeviceStatusByLocal(IResultCallback callback)
Directly query the status of all sub-device under the mesh
- Parameters:
callback
- Callback for send result IResultCallback
-
-
-
-