-
public interface IBlueMeshManager
Provide BlueMeshBean operation interface.
-
-
Method Summary
Modifier and Type Method Description abstract BlueMeshBean
getBlueMeshBean(String meshId)
Get BlueMeshBean by mesh id. abstract void
createBlueMesh(long homeId, String meshName, IBlueMeshCreateCallback callback)
Get necessary parameters from server, such as network key, application key, etc. abstract List<BlueMeshBean>
getBlueMeshList()
Get all BlueMeshBean info in current family from local cache. abstract void
requestMeshList(long homeId, IRequestMeshListCallback callback)
Get all BlueMeshBean info in specified family from server. abstract void
requestUpgradeInfo(String devId, IRequestUpgradeInfoCallback callback)
Query device firmware upgrade information from server. abstract void
updateBuleMesh(List<BlueMeshBean> blueMeshBeans)
Replace all local cache. abstract String
parseVenderIdFromDp(Set dps, String pcc)
Get vendor id from dps.If the dps corresponding to the vendor id in pcc contains the parameter dps, then return this vendor id, elsereturn the first vendor id in pcc. abstract DpsParseBean
getThingMeshParseBean(String value, String dpId)
Get opCode and parameter by vendor id and dp id. abstract void
onDestroy()
Recycle and destroy resources, such as cache. -
-
Method Detail
-
getBlueMeshBean
abstract BlueMeshBean getBlueMeshBean(String meshId)
Get BlueMeshBean by mesh id.
- Parameters:
meshId
- Thing mesh id getMeshId
-
createBlueMesh
abstract void createBlueMesh(long homeId, String meshName, IBlueMeshCreateCallback callback)
Get necessary parameters from server, such as network key, application key, etc.
- Parameters:
homeId
- Thing home idmeshName
- Thing mesh namecallback
- call back for result
-
getBlueMeshList
abstract List<BlueMeshBean> getBlueMeshList()
Get all BlueMeshBean info in current family from local cache.
-
requestMeshList
abstract void requestMeshList(long homeId, IRequestMeshListCallback callback)
Get all BlueMeshBean info in specified family from server.
- Parameters:
homeId
- Thing home idcallback
- Call back for result IRequestMeshListCallback
-
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
-
updateBuleMesh
abstract void updateBuleMesh(List<BlueMeshBean> blueMeshBeans)
Replace all local cache.
- Parameters:
blueMeshBeans
- List of BlueMeshBean BlueMeshBean
-
parseVenderIdFromDp
abstract String parseVenderIdFromDp(Set dps, String pcc)
Get vendor id from dps.If the dps corresponding to the vendor id in pcc contains the parameter dps, then return this vendor id, elsereturn the first vendor id in pcc.
- Parameters:
dps
- Fusion dpspcc
- Vendor ids
-
getThingMeshParseBean
abstract DpsParseBean getThingMeshParseBean(String value, String dpId)
Get opCode and parameter by vendor id and dp id.
- Parameters:
value
- Thing vendor id.dpId
- Thing dp id com.thingclips.smart.android.device.bean.SchemaBean
-
onDestroy
abstract void onDestroy()
Recycle and destroy resources, such as cache.
-
-
-
-