-
public interface IThingSigMeshClient
The interface of sigmesh connection management.
-
-
Method Summary
Modifier and Type Method Description abstract void
startClient(SigMeshBean sigMeshBean)
Start connect to specified device. abstract void
startClient(SigMeshBean sigMeshBean, long searchTime)
Start connect to specified device and set limited scan time. abstract void
startConnect(SigMeshBean sigMeshBean, SearchDeviceBean searchDeviceBean)
Start connect to specified device abstract void
startConnect(SigMeshBean sigMeshBean, SearchDeviceBean searchDeviceBean, IThingMeshCallback<SigMeshBean> callback)
Start connect to specified device abstract void
stopClient()
Stop all action, include scan, connect, status listener, etc. abstract void
startSearch()
Start scan. abstract void
stopSearch()
Stop scan. abstract void
initMesh(String meshId)
Init mesh status listeners from server and mqtt. abstract void
initMesh(String meshId, boolean isDebug)
abstract void
destroyMesh(String meshId)
Unregister the mesh status listeners from server and mqtt for all. abstract MeshClientStatusEnum
getStatus()
Get current connect status with mesh. abstract String
getConnectMeshNodeId()
Get the node ID directly connected to the current mesh network abstract void
tryRestartSigMeshClient()
-
-
Method Detail
-
startClient
abstract void startClient(SigMeshBean sigMeshBean)
Start connect to specified device.
- Parameters:
sigMeshBean
- SigMeshBean
-
startClient
abstract void startClient(SigMeshBean sigMeshBean, long searchTime)
Start connect to specified device and set limited scan time.
- Parameters:
sigMeshBean
- SigMeshBean
-
startConnect
abstract void startConnect(SigMeshBean sigMeshBean, SearchDeviceBean searchDeviceBean)
Start connect to specified device
- Parameters:
sigMeshBean
- SigMeshBeansearchDeviceBean
- SearchDeviceBean
-
startConnect
abstract void startConnect(SigMeshBean sigMeshBean, SearchDeviceBean searchDeviceBean, IThingMeshCallback<SigMeshBean> callback)
Start connect to specified device
- Parameters:
sigMeshBean
- SigMeshBeansearchDeviceBean
- SearchDeviceBean
-
stopClient
abstract void stopClient()
Stop all action, include scan, connect, status listener, etc.
-
startSearch
abstract void startSearch()
Start scan.This must be used after startClient or startClient
-
stopSearch
abstract void stopSearch()
Stop scan.
-
initMesh
abstract void initMesh(String meshId)
Init mesh status listeners from server and mqtt.
- Parameters:
meshId
- Thing mesh id com.thingclips.smart.sdk.bean.DeviceBean
-
initMesh
abstract void initMesh(String meshId, boolean isDebug)
-
destroyMesh
abstract void destroyMesh(String meshId)
Unregister the mesh status listeners from server and mqtt for all.
-
getStatus
abstract MeshClientStatusEnum getStatus()
Get current connect status with mesh.
-
getConnectMeshNodeId
abstract String getConnectMeshNodeId()
Get the node ID directly connected to the current mesh network
-
tryRestartSigMeshClient
abstract void tryRestartSigMeshClient()
-
-
-
-