-
public interface IMeshManager
author : yuzhouxu date : 2021/6/1 11:34 description :Mesh service related functions
-
-
Method Summary
Modifier and Type Method Description abstract void
createSigMesh(long homeId, IThingResultCallback<SigMeshBean> callback)
Create mesh under home abstract void
createThingMesh(long homeId, String meshName, IThingResultCallback<BlueMeshBean> callback)
abstract void
removeMesh(String meshId, IResultCallback callback)
Delete a mesh network abstract void
renameMesh(String meshId, String meshName, IResultCallback callback)
Rename mesh group device. abstract List<SigMeshBean>
getSigMeshList()
Get mesh list under home abstract List<BlueMeshBean>
getThingMeshList()
Get all BlueMeshBean info in current family from local cache. abstract void
requestSigMeshList(long homeId, IRequestSigMeshListCallback callback)
Get all SigMeshBean info in specified family from server. abstract void
requestThingMeshList(long homeId, IRequestMeshListCallback callback)
Get all BlueMeshBean info in specified family from server. abstract List<DeviceBean>
getMeshSubDevList(String meshId)
Get the device list under mesh network abstract void
initMesh(String meshId)
Initialize mesh network abstract void
destroyMesh(String meshId)
Destroy mesh network abstract void
operationMeshSubDevice(MeshOperationBean params, IResultCallback callback)
abstract void
renameGroup(MeshGroupOperationBean params, IResultCallback callback)
Rename group abstract void
addSubDev(String meshId, String uuid, String nodeId, String encryptedAuthKey, String productKey, String version, IAddSubDevCallback callback)
Add device to cloud with auth key. abstract void
addSubDev(String meshId, String uuid, String nodeId, String productKey, String version, String deviceKey, String mac, String option, IAddSubDevCallback callback)
Add device to cloud without auth key. abstract DeviceBean
getMeshSubDevBean(String devId)
Get device info. abstract DeviceBean
getMeshSubDevBeanByNodeId(String meshId, String nodeId)
Get device info. abstract DeviceBean
getMeshSubDevBeanByMac(String meshId, String mac)
Get device info. abstract void
requestUpgradeInfo(String devId, IRequestUpgradeInfoCallback callback)
Query device firmware upgrade information from server. -
-
Method Detail
-
createSigMesh
abstract void createSigMesh(long homeId, IThingResultCallback<SigMeshBean> callback)
Create mesh under home
- Parameters:
callback
- callback for result
-
createThingMesh
abstract void createThingMesh(long homeId, String meshName, IThingResultCallback<BlueMeshBean> callback)
-
removeMesh
abstract void removeMesh(String meshId, IResultCallback callback)
Delete a mesh network
- Parameters:
meshId
- meshIdcallback
- callback for result
-
renameMesh
abstract void renameMesh(String meshId, String meshName, IResultCallback callback)
Rename mesh group device.
- Parameters:
meshName
- New namecallback
- IResultCallback
-
getSigMeshList
abstract List<SigMeshBean> getSigMeshList()
Get mesh list under home
-
getThingMeshList
abstract List<BlueMeshBean> getThingMeshList()
Get all BlueMeshBean info in current family from local cache.
-
requestSigMeshList
abstract void requestSigMeshList(long homeId, IRequestSigMeshListCallback callback)
Get all SigMeshBean info in specified family from server.
- Parameters:
homeId
- Thing home idcallback
- Call back for result IRequestSigMeshListCallback
-
requestThingMeshList
abstract void requestThingMeshList(long homeId, IRequestMeshListCallback callback)
Get all BlueMeshBean info in specified family from server.
- Parameters:
homeId
- Thing home idcallback
- Call back for result IRequestMeshListCallback
-
getMeshSubDevList
abstract List<DeviceBean> getMeshSubDevList(String meshId)
Get the device list under mesh network
-
initMesh
abstract void initMesh(String meshId)
Initialize mesh network
-
destroyMesh
abstract void destroyMesh(String meshId)
Destroy mesh network
- Parameters:
meshId
- meshId
-
operationMeshSubDevice
abstract void operationMeshSubDevice(MeshOperationBean params, IResultCallback callback)
-
renameGroup
abstract void renameGroup(MeshGroupOperationBean params, IResultCallback callback)
Rename group
-
addSubDev
abstract void addSubDev(String meshId, String uuid, String nodeId, String encryptedAuthKey, String productKey, String version, IAddSubDevCallback callback)
Add device to cloud with auth key.
- Parameters:
uuid
- Obtain from broadcast package of the devicenodeId
- Thing node id getNodeIdencryptedAuthKey
- Obtain from broadcast package of the deviceproductKey
- Obtain from broadcast package of the deviceversion
- Obtain from broadcast package of the devicecallback
- Callback for result IAddSubDevCallback
-
addSubDev
abstract void addSubDev(String meshId, String uuid, String nodeId, String productKey, String version, String deviceKey, String mac, String option, IAddSubDevCallback callback)
Add device to cloud without auth key.
- Parameters:
uuid
- Mac address of devicenodeId
- Thing node id getNodeIdproductKey
- Obtain from broadcast package of the deviceversion
- Obtain from broadcast package of the devicedeviceKey
- Can be emptymac
- Mac address of deviceoption
- Additional configuration optionscallback
- Callback for result IResultCallback
-
getMeshSubDevBean
abstract DeviceBean getMeshSubDevBean(String devId)
Get device info.
- Parameters:
devId
- getDevId
-
getMeshSubDevBeanByNodeId
abstract DeviceBean getMeshSubDevBeanByNodeId(String meshId, String nodeId)
Get device info.
- Parameters:
nodeId
- getNodeId
-
getMeshSubDevBeanByMac
abstract DeviceBean getMeshSubDevBeanByMac(String meshId, String mac)
Get device info.
- Parameters:
mac
- Mac address of device
-
requestUpgradeInfo
abstract void requestUpgradeInfo(String devId, IRequestUpgradeInfoCallback callback)
Query device firmware upgrade information from server.
- Parameters:
devId
- Thing device id com.thingclips.smart.sdk.bean.DeviceBeancallback
- Call back for result
-
-
-
-