-
public interface IThingMeshManager
author : yuzhouxu date : 2021/6/9 17:20 description :
-
-
Method Summary
Modifier and Type Method Description abstract void
createSigMesh(long gId, IThingResultCallback<SigMeshBean> callback)
Generate a virtual sigmesh gateway device in the current home. abstract void
createThingMesh(long gId, String meshName, IThingResultCallback<BlueMeshBean> callback)
Generate a virtual mesh gateway device in the current home. abstract void
removeMesh(String meshId, IResultCallback callback)
Delete a mesh network abstract void
initSigMesh(String meshId)
Init mesh status listeners from server and mqtt. abstract void
connectMesh(List<MeshConnectBuilder> builderList)
abstract void
searchOnly(List<MeshConnectBuilder> builderList, SearchOnlyCallback searchOnlyCallback)
Search for devices in the mesh network abstract void
stopAllSearchAndConnect()
abstract void
disconnectMesh(String meshId)
abstract void
disConnectWireNodeId(String meshId, String nodeId)
abstract void
initMesh(String meshId, boolean isSigMesh)
Init mesh status listeners from server and mqtt. abstract void
destroyMesh(String meshId)
Unregister the mesh status listeners from server and mqtt for all. abstract List<DeviceBean>
getMeshSubDevList(String meshId)
Get the device list under the current mesh network abstract void
publishDps(String deviceId, String dps, IResultCallback callback)
send message to device abstract void
querySubDevStatusByLocal(String meshId, String pcc, String nodeId, IResultCallback callback)
Query the status of sub device in mesh network abstract boolean
isMeshLocalOnLine(String meshId)
Determine whether the mesh network is online abstract void
queryAllOnLineStatusByLocal(String meshId, IResultCallback callback)
Query local online status of all sub-devices. abstract List<SigMeshBean>
getSigMeshList()
Get the list of SigMeshBean abstract List<BlueMeshBean>
getThingMeshList()
Get the list of BlueMeshBean abstract ISigMeshControl
getSigMeshController(String meshId)
Get mesh network manager abstract <T extends IMeshCommonControl> T
getMeshController(String meshId, boolean isSigMesh)
Get mesh network manager abstract void
createMeshGroup(String meshId, String name, String category, String localId, IAddGroupCallback callback)
Create mesh group of the same category . abstract void
createMeshGroupLocalId(String meshId, IThingResultCallback<String> callback)
create the local ID of the mesh group abstract void
clearGattService(String mac)
abstract List<String>
getConnectedMeshIds()
abstract Map<String, IMeshCommonControl>
getAllMeshController()
abstract SigMeshGlobalConfiguration
obtainSigMeshGlobalConfiguration()
-
-
Method Detail
-
createSigMesh
abstract void createSigMesh(long gId, IThingResultCallback<SigMeshBean> callback)
Generate a virtual sigmesh gateway device in the current home.
Called once during network formation.
- Parameters:
callback
- IThingResultCallback IThingResultCallback
-
createThingMesh
abstract void createThingMesh(long gId, String meshName, IThingResultCallback<BlueMeshBean> callback)
Generate a virtual mesh gateway device in the current home.
Called once during network formation.
- Parameters:
meshName
- The name of mesh.callback
- IThingResultCallback IThingResultCallback
-
removeMesh
abstract void removeMesh(String meshId, IResultCallback callback)
Delete a mesh network
- Parameters:
meshId
- meshId getMeshIdcallback
- IResultCallback IResultCallback
-
initSigMesh
abstract void initSigMesh(String meshId)
Init mesh status listeners from server and mqtt.
- Parameters:
meshId
- sigmesh id com.thingclips.smart.sdk.bean.DeviceBean
-
connectMesh
abstract void connectMesh(List<MeshConnectBuilder> builderList)
-
searchOnly
abstract void searchOnly(List<MeshConnectBuilder> builderList, SearchOnlyCallback searchOnlyCallback)
Search for devices in the mesh network
-
stopAllSearchAndConnect
abstract void stopAllSearchAndConnect()
-
disconnectMesh
abstract void disconnectMesh(String meshId)
-
disConnectWireNodeId
abstract void disConnectWireNodeId(String meshId, String nodeId)
-
initMesh
abstract void initMesh(String meshId, boolean isSigMesh)
Init mesh status listeners from server and mqtt.
- Parameters:
meshId
- sigmesh or thingmesh id com.thingclips.smart.sdk.bean.DeviceBeanisSigMesh
- true if sigmesh
-
destroyMesh
abstract void destroyMesh(String meshId)
Unregister the mesh status listeners from server and mqtt for all.
-
getMeshSubDevList
abstract List<DeviceBean> getMeshSubDevList(String meshId)
Get the device list under the current mesh network
- Parameters:
meshId
- getMeshId
-
publishDps
abstract void publishDps(String deviceId, String dps, IResultCallback callback)
send message to device
- Parameters:
deviceId
- getDevIddps
- DP point sentcallback
- callback IResultCallback IResultCallback
-
querySubDevStatusByLocal
abstract void querySubDevStatusByLocal(String meshId, String pcc, String nodeId, IResultCallback callback)
Query the status of sub device in mesh network
- Parameters:
meshId
- getMeshIdpcc
- getCategorynodeId
- getNodeIdcallback
- IThingResultCallback IThingResultCallback
-
isMeshLocalOnLine
abstract boolean isMeshLocalOnLine(String meshId)
Determine whether the mesh network is online
- Parameters:
meshId
- getMeshId
-
queryAllOnLineStatusByLocal
abstract void queryAllOnLineStatusByLocal(String meshId, IResultCallback callback)
Query local online status of all sub-devices.
- Parameters:
callback
- Callback for send result IResultCallback
-
getSigMeshList
abstract List<SigMeshBean> getSigMeshList()
Get the list of SigMeshBean
-
getThingMeshList
abstract List<BlueMeshBean> getThingMeshList()
Get the list of BlueMeshBean
-
getSigMeshController
abstract ISigMeshControl getSigMeshController(String meshId)
Get mesh network manager
- Parameters:
meshId
- getMeshId
-
getMeshController
abstract <T extends IMeshCommonControl> T getMeshController(String meshId, boolean isSigMesh)
Get mesh network manager
- Parameters:
meshId
- getMeshIdisSigMesh
- True if sigmesh, false if thing mesh
-
createMeshGroup
abstract void createMeshGroup(String meshId, 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
-
createMeshGroupLocalId
abstract void createMeshGroupLocalId(String meshId, IThingResultCallback<String> callback)
create the local ID of the mesh group
- Parameters:
meshId
- getMeshIdcallback
- Callback for result IThingResultCallback
-
clearGattService
abstract void clearGattService(String mac)
-
getConnectedMeshIds
abstract List<String> getConnectedMeshIds()
-
getAllMeshController
abstract Map<String, IMeshCommonControl> getAllMeshController()
-
obtainSigMeshGlobalConfiguration
abstract SigMeshGlobalConfiguration obtainSigMeshGlobalConfiguration()
-
-
-
-