-
public interface IMeshCommonControl
author : yuzhouxu date : 2021/6/9 14:09 description :mesh Functions related to equipment control and monitoring
-
-
Method Summary
Modifier and Type Method Description abstract void
publishDps(String nodeId, String pcc, String dps, IResultCallback callback)
Send mesh message to a device. abstract void
multicastDps(String localId, String pcc, String dps, 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
removeMeshSubDev(String devId, IResultCallback callback)
Delete device from server. abstract void
removeMeshSubDevByLocal(String pcc, String nodeId, String devKey, IResultCallback callback)
Delete device from local. abstract void
queryAllOnLineStatusByLocal(IResultCallback callback)
SigMeshQuery the online status of the device according to the getOnlineMode When the getOnlineMode is RESPONSE_ONLINE , query the online status of all devices. abstract <T extends IMeshDevListener> void
registerMeshDevListener(T listener)
Register to listen to devices in mesh reporting data, such as dps, online status, bind status, etc. abstract void
unRegisterMeshDevListener(IMeshDevListener meshDevListener)
Unregister the listener of device reporting data.This is suggested to be used at the end. abstract MeshClientStatusEnum
getStatus()
Get current connect status with mesh. abstract boolean
isInConfig()
abstract void
connect(MeshConnectBuilder builder)
abstract void
disconnect()
abstract boolean
isMeshLocalOnLine()
Query local online status of mesh abstract void
clearDevice(String devId)
Recycle and destroy resources of device abstract void
getMeshGroupLocalId(String meshId, IThingResultCallback<String> callback)
Get the local ID of the mesh group abstract void
addGroup(String name, String category, String localId, IAddGroupCallback callback)
Create mesh group of the same category . abstract void
onDestroy()
Recycle and destroy resources, such as cache. abstract void
disConnectWireNodeId(String nodeId)
-
-
Method Detail
-
publishDps
abstract void publishDps(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
-
multicastDps
abstract void multicastDps(String localId, String pcc, String dps, 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
-
removeMeshSubDev
abstract void removeMeshSubDev(String devId, IResultCallback callback)
Delete device from server.
- Parameters:
devId
- getDevIdcallback
- Callback for result IResultCallback
-
removeMeshSubDevByLocal
abstract void removeMeshSubDevByLocal(String pcc, String nodeId, String devKey, IResultCallback callback)
Delete device from local.
- Parameters:
pcc
- getCategory}nodeId
- getNodeId ()}devKey
- getDevKeycallback
- Callback for result IResultCallback
-
queryAllOnLineStatusByLocal
abstract void queryAllOnLineStatusByLocal(IResultCallback callback)
SigMeshQuery the online status of the device according to the getOnlineMode When the getOnlineMode is RESPONSE_ONLINE , query the online status of all devices.When the getOnlineMode is DEFAULT, only query the online status of offline devices.
Private BlueMeshquery all device status
- Parameters:
callback
- Callback for send result IResultCallback
-
registerMeshDevListener
abstract <T extends IMeshDevListener> void registerMeshDevListener(T listener)
Register to listen to devices in mesh reporting data, such as dps, online status, bind status, etc.
- Parameters:
listener
- Callback for device reporting data IMeshDevListener
-
unRegisterMeshDevListener
abstract void unRegisterMeshDevListener(IMeshDevListener meshDevListener)
Unregister the listener of device reporting data.This is suggested to be used at the end.
- Parameters:
meshDevListener
- IMeshDevListener
-
getStatus
abstract MeshClientStatusEnum getStatus()
Get current connect status with mesh.
-
isInConfig
abstract boolean isInConfig()
-
connect
abstract void connect(MeshConnectBuilder builder)
-
disconnect
abstract void disconnect()
-
isMeshLocalOnLine
abstract boolean isMeshLocalOnLine()
Query local online status of mesh
-
clearDevice
abstract void clearDevice(String devId)
Recycle and destroy resources of device
- Parameters:
devId
- getDevId
-
getMeshGroupLocalId
abstract void getMeshGroupLocalId(String meshId, IThingResultCallback<String> callback)
Get the local ID of the mesh group
- Parameters:
meshId
- getMeshIdcallback
- Callback for result IThingResultCallback
-
addGroup
abstract void addGroup(String name, String category, String localId, IAddGroupCallback callback)
Create mesh group of the same category .
- Parameters:
name
- Group namecategory
- Category of device getCategorylocalId
- Group addresscallback
- Callback for result IResultCallback
-
onDestroy
abstract void onDestroy()
Recycle and destroy resources, such as cache.
-
disConnectWireNodeId
abstract void disConnectWireNodeId(String nodeId)
-
-
-
-