-
public interface IExecuteService
Scenario execution capability
-
-
Method Summary
Modifier and Type Method Description abstract Unit
,
)>executeScene (<ERROR CLASS> normalScene, <ERROR CLASS> callback)execute manual for sdk 1、execute newLocalScene 2、execute by cloud abstract Unit
)>executeSceneOnCloud(String sceneId, <ERROR CLASS> callback)
Execute scenarios in the cloud abstract Unit
)>getStandardInfo(List<String> meshIds, <ERROR CLASS> callback)
Get standard scene information. abstract Unit
)>groupPublishDps(Long groupId, String dps, <ERROR CLASS> callback)
Group control except mesh, sigMesh group devices abstract Unit
)>publishDps(String deviceId, String dps, <ERROR CLASS> callback)
Device control other than mesh, sigMesh devices abstract Unit
)>executeLocalSceneNew(String gatewayId, String sceneId, <ERROR CLASS> callback)
Execute a new local scene abstract Unit
)>executeSceneMqtt(String gatewayId, String sceneId, <ERROR CLASS> callback)
Gateway scenario execution through mqtt channel abstract Unit
)>executeLocalScene(String gatewayId, String gid, String sid, <ERROR CLASS> callback)
Standard scenario execution. abstract Unit
)>meshDevicePublishDps(String meshId, String nodeId, String pcc, String dps, <ERROR CLASS> callback)
Mesh device control abstract Unit
)>sigMeshDevicePublishDps(String meshId, String nodeId, String pcc, String dps, <ERROR CLASS> callback)
sigMesh device control abstract Unit
)>meshGroupPublishDps(String meshId, String localId, String category, String dps, <ERROR CLASS> callback)
mesh device group control abstract Unit
)>sigMeshGroupPublishDps(String meshId, String localId, String category, String dps, <ERROR CLASS> callback)
sigMesh device group control abstract Unit
batchExecuteDeviceDps(List<<ERROR CLASS>> batchExecutionDpsList, Integer retryCount)
Execute the dps of devices in batches. abstract Unit
registerMeshDeviceListener(String meshId, Function2<String, String, Unit> listener)
Register mesh device listening abstract Unit
registerSigMeshDeviceListener(String meshId, Function2<String, String, Unit> listener)
Register sigMesh device listening abstract Unit
registerDeviceListener(String deviceId, Function2<String, String, Unit> listener)
Register for general device monitoring (including Wi-Fi, single-point bluetooth, zigbee) abstract Unit
registerGroupListener(Long groupId, Function2<Long, String, Unit> listener)
Register group device monitoring abstract Unit
unRegisterDevListener(String deviceId)
Remove device monitoring abstract Unit
unRegisterMeshDevListener(String meshId)
Remove mesh device listening abstract Unit
unRegisterSigMeshDevListener(String meshId)
Remove sigMesh device listening abstract Unit
unRegisterGroupListener(Long groupId)
Remove group device monitoring abstract Unit
registerDeviceMqttListener(SceneChangeCallback callback)
Register scene change mqtt listener. abstract Unit
unRegisterDeviceMqttListener()
Remove scene change mqtt listener. abstract Unit
onDestroy()
when destroy -
-
Method Detail
-
executeScene
abstract Unit ,
)>executeScene (<ERROR CLASS> normalScene, <ERROR CLASS> callback)execute manual for sdk 1、execute newLocalScene 2、execute by cloud
- Parameters:
normalScene
- the bean of scenecallback
- callback IResultCallback
-
executeSceneOnCloud
abstract Unit )>executeSceneOnCloud(String sceneId, <ERROR CLASS> callback)
Execute scenarios in the cloud
- Parameters:
sceneId
- the id of scene to executecallback
- callback IResultCallback
-
getStandardInfo
abstract Unit )>getStandardInfo(List<String> meshIds, <ERROR CLASS> callback)
Get standard scene information. such as gid, sid
- Parameters:
meshIds
- the ids of gatewaycallback
- callback IResultCallback
-
groupPublishDps
abstract Unit )>groupPublishDps(Long groupId, String dps, <ERROR CLASS> callback)
Group control except mesh, sigMesh group devices
- Parameters:
groupId
- the id of the devicedps
- the dps that deliver controlcallback
- callback IResultCallback
-
publishDps
abstract Unit )>publishDps(String deviceId, String dps, <ERROR CLASS> callback)
Device control other than mesh, sigMesh devices
- Parameters:
deviceId
- the id of the devicedps
- the dps that deliver controlcallback
- callback IResultCallback
-
executeLocalSceneNew
abstract Unit )>executeLocalSceneNew(String gatewayId, String sceneId, <ERROR CLASS> callback)
Execute a new local scene
- Parameters:
gatewayId
- the id of gateway to execute scenesceneId
- the id of scene to executecallback
- callback IResultCallback
-
executeSceneMqtt
abstract Unit )>executeSceneMqtt(String gatewayId, String sceneId, <ERROR CLASS> callback)
Gateway scenario execution through mqtt channel
- Parameters:
gatewayId
- the id of gateway to execute scenesceneId
- the id of scene to executecallback
- callback IResultCallback
-
executeLocalScene
abstract Unit )>executeLocalScene(String gatewayId, String gid, String sid, <ERROR CLASS> callback)
Standard scenario execution. which use gid, sid, gwId
- Parameters:
gatewayId
- the id of gateway to execute scenegid
- similar group id, but not a regular group idsid
- similar scene id, but not a regular scene idcallback
- callback IResultCallback
-
meshDevicePublishDps
abstract Unit )>meshDevicePublishDps(String meshId, String nodeId, String pcc, String dps, <ERROR CLASS> callback)
Mesh device control
- Parameters:
meshId
- the mesh id of the device, which is useful when the device is a sub-device.nodeId
- the node id of the device, which is useful when the device is a sub-device.pcc
- Bluetooth Mesh product category.dps
- data pointscallback
- callback IResultCallback
-
sigMeshDevicePublishDps
abstract Unit )>sigMeshDevicePublishDps(String meshId, String nodeId, String pcc, String dps, <ERROR CLASS> callback)
sigMesh device control
- Parameters:
meshId
- the mesh id of the device, which is useful when the device is a sub-device.nodeId
- the node id of the device, which is useful when the device is a sub-device.pcc
- Bluetooth Mesh product category.dps
- data pointscallback
- callback IResultCallback
-
meshGroupPublishDps
abstract Unit )>meshGroupPublishDps(String meshId, String localId, String category, String dps, <ERROR CLASS> callback)
mesh device group control
- Parameters:
meshId
- the mesh id of the group.localId
- local id, the unique identity of each mesh group in the mesh networkcategory
- category mark of equipmentdps
- data pointscallback
- callback IResultCallback
-
sigMeshGroupPublishDps
abstract Unit )>sigMeshGroupPublishDps(String meshId, String localId, String category, String dps, <ERROR CLASS> callback)
sigMesh device group control
- Parameters:
meshId
- the mesh id of the group.localId
- local id, the unique identity of each mesh group in the mesh networkcategory
- category mark of equipmentdps
- data pointscallback
- callback IResultCallback
-
batchExecuteDeviceDps
abstract Unit batchExecuteDeviceDps(List<<ERROR CLASS>> batchExecutionDpsList, Integer retryCount)
Execute the dps of devices in batches.(in fact, common devices also support)
- Parameters:
batchExecutionDpsList
- batch execution info listretryCount
- retry count
-
registerMeshDeviceListener
abstract Unit registerMeshDeviceListener(String meshId, Function2<String, String, Unit> listener)
Register mesh device listening
- Parameters:
meshId
- The mesh id of the device, which is useful when the device is a sub-device.listener
- listener
-
registerSigMeshDeviceListener
abstract Unit registerSigMeshDeviceListener(String meshId, Function2<String, String, Unit> listener)
Register sigMesh device listening
- Parameters:
meshId
- The mesh id of the device, which is useful when the device is a sub-device.listener
- listener
-
registerDeviceListener
abstract Unit registerDeviceListener(String deviceId, Function2<String, String, Unit> listener)
Register for general device monitoring (including Wi-Fi, single-point bluetooth, zigbee)
- Parameters:
deviceId
- the id of the devicelistener
- listener
-
registerGroupListener
abstract Unit registerGroupListener(Long groupId, Function2<Long, String, Unit> listener)
Register group device monitoring
- Parameters:
groupId
- the id of the grouplistener
- listener
-
unRegisterDevListener
abstract Unit unRegisterDevListener(String deviceId)
Remove device monitoring
- Parameters:
deviceId
- the id of the device
-
unRegisterMeshDevListener
abstract Unit unRegisterMeshDevListener(String meshId)
Remove mesh device listening
- Parameters:
meshId
- the mesh id of the device
-
unRegisterSigMeshDevListener
abstract Unit unRegisterSigMeshDevListener(String meshId)
Remove sigMesh device listening
- Parameters:
meshId
- the mesh id of the device
-
unRegisterGroupListener
abstract Unit unRegisterGroupListener(Long groupId)
Remove group device monitoring
- Parameters:
groupId
- the id of the group
-
registerDeviceMqttListener
abstract Unit registerDeviceMqttListener(SceneChangeCallback callback)
Register scene change mqtt listener.
- Parameters:
callback
- SceneChangeCallback
-
unRegisterDeviceMqttListener
abstract Unit unRegisterDeviceMqttListener()
Remove scene change mqtt listener.
-
onDestroy
abstract Unit onDestroy()
when destroy
-
-
-
-