-
public interface IThingBlueMeshClient
The interface of thingmesh connection management.
-
-
Method Summary
Modifier and Type Method Description abstract void
startClient(BlueMeshBean blueMeshBean)
Start connect to specified device. abstract void
startClient(BlueMeshBean blueMeshBean, long searchTime)
Start connect to specified device and set limited scan time. 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()
Unregister the mesh status listeners from server and mqtt for all. abstract void
destroyMesh(String meshId)
Unregister the mesh status listeners from server and mqtt for specified meshId. abstract MeshClientStatusEnum
getStatus()
Get current connect status with mesh. -
-
Method Detail
-
startClient
abstract void startClient(BlueMeshBean blueMeshBean)
Start connect to specified device.
- Parameters:
blueMeshBean
- BlueMeshBean
-
startClient
abstract void startClient(BlueMeshBean blueMeshBean, long searchTime)
Start connect to specified device and set limited scan time.
- Parameters:
blueMeshBean
- BlueMeshBean
-
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
@Deprecated() abstract void destroyMesh()
Unregister the mesh status listeners from server and mqtt for all.
-
destroyMesh
abstract void destroyMesh(String meshId)
Unregister the mesh status listeners from server and mqtt for specified meshId.
- Parameters:
meshId
- Thing mesh id com.thingclips.smart.sdk.bean.DeviceBean
-
getStatus
abstract MeshClientStatusEnum getStatus()
Get current connect status with mesh.
-
-
-
-