-
public interface IMeshCommonControlauthor : yuzhouxu date : 2021/6/9 14:09 description :mesh Functions related to equipment control and monitoring
-
-
Method Summary
Modifier and Type Method Description abstract voidpublishDps(String nodeId, String pcc, String dps, IResultCallback callback)Send mesh message to a device. abstract voidmulticastDps(String localId, String pcc, String dps, IResultCallback callback)Send mesh message to a group address. abstract voidquerySubDevStatusByLocal(String pcc, String nodeId, IResultCallback callback)Query all status of current mesh device by local. abstract voidremoveMeshSubDev(String devId, IResultCallback callback)Delete device from server. abstract voidremoveMeshSubDevByLocal(String pcc, String nodeId, String devKey, IResultCallback callback)Delete device from local. abstract voidqueryAllOnLineStatusByLocal(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> voidregisterMeshDevListener(T listener)Register to listen to devices in mesh reporting data, such as dps, online status, bind status, etc. abstract voidunRegisterMeshDevListener(IMeshDevListener meshDevListener)Unregister the listener of device reporting data.This is suggested to be used at the end. abstract MeshClientStatusEnumgetStatus()Get current connect status with mesh. abstract booleanisInConfig()abstract voidconnect(MeshConnectBuilder builder)abstract voiddisconnect()abstract booleanisMeshLocalOnLine()Query local online status of mesh abstract voidclearDevice(String devId)Recycle and destroy resources of device abstract voidgetMeshGroupLocalId(String meshId, IThingResultCallback<String> callback)Get the local ID of the mesh group abstract voidaddGroup(String name, String category, String localId, IAddGroupCallback callback)Create mesh group of the same category . abstract voidonDestroy()Recycle and destroy resources, such as cache. abstract voiddisConnectWireNodeId(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)
-
-
-
-