-
public interface IThingMeshManagerauthor : yuzhouxu date : 2021/6/9 17:20 description :
-
-
Method Summary
Modifier and Type Method Description abstract voidcreateSigMesh(long gId, IThingResultCallback<SigMeshBean> callback)Generate a virtual sigmesh gateway device in the current home. abstract voidcreateThingMesh(long gId, String meshName, IThingResultCallback<BlueMeshBean> callback)Generate a virtual mesh gateway device in the current home. abstract voidremoveMesh(String meshId, IResultCallback callback)Delete a mesh network abstract voidinitSigMesh(String meshId)Init mesh status listeners from server and mqtt. abstract voidconnectMesh(List<MeshConnectBuilder> builderList)abstract voidsearchOnly(List<MeshConnectBuilder> builderList, SearchOnlyCallback searchOnlyCallback)Search for devices in the mesh network abstract voidstopAllSearchAndConnect()abstract voiddisconnectMesh(String meshId)abstract voiddisConnectWireNodeId(String meshId, String nodeId)abstract voidinitMesh(String meshId, boolean isSigMesh)Init mesh status listeners from server and mqtt. abstract voiddestroyMesh(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 voidpublishDps(String deviceId, String dps, IResultCallback callback)send message to device abstract voidquerySubDevStatusByLocal(String meshId, String pcc, String nodeId, IResultCallback callback)Query the status of sub device in mesh network abstract booleanisMeshLocalOnLine(String meshId)Determine whether the mesh network is online abstract voidqueryAllOnLineStatusByLocal(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 ISigMeshControlgetSigMeshController(String meshId)Get mesh network manager abstract <T extends IMeshCommonControl> TgetMeshController(String meshId, boolean isSigMesh)Get mesh network manager abstract voidcreateMeshGroup(String meshId, String name, String category, String localId, IAddGroupCallback callback)Create mesh group of the same category . abstract voidcreateMeshGroupLocalId(String meshId, IThingResultCallback<String> callback)create the local ID of the mesh group abstract voidclearGattService(String mac)abstract List<String>getConnectedMeshIds()abstract Map<String, IMeshCommonControl>getAllMeshController()abstract SigMeshGlobalConfigurationobtainSigMeshGlobalConfiguration()-
-
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()
-
-
-
-