-
public interface IExecuteService
Scenario execution capability
-
-
Method Summary
Modifier and Type Method Description abstract Unit
,IResultCallback)>executeScene(<ERROR CLASS> normalScene, IResultCallback callback)
execute manual for sdk 1、execute newLocalScene 2、execute by cloud abstract Unit
executeSceneOnCloud(String sceneId, IResultCallback callback)
Execute scenarios in the cloud abstract Unit
getStandardInfo(List<String> meshIds, IResultCallback callback)
Get standard scene information. abstract Unit
groupPublishDps(Long groupId, String dps, IResultCallback callback)
Group control except mesh, sigMesh group devices abstract Unit
infraredPublishDps(String infraGwId, String subDeviceId, String actionDps, String reportDps, IResultCallback callback)
Infrared device control abstract Unit
publishDps(String deviceId, String dps, IResultCallback callback)
Device control other than mesh, sigMesh devices abstract Unit
executeLocalSceneNew(String gatewayId, String sceneId, IResultCallback callback)
Execute a new local scene abstract Unit
executeSceneMqtt(String gatewayId, String sceneId, IResultCallback callback)
Gateway scenario execution through mqtt channel abstract Unit
executeLocalScene(String gatewayId, String gid, String sid, IResultCallback callback)
Standard scenario execution. abstract Unit
meshDevicePublishDps(String meshId, String nodeId, String pcc, String dps, IResultCallback callback)
Mesh device control abstract Unit
sigMeshDevicePublishDps(String meshId, String nodeId, String pcc, String dps, IResultCallback callback)
sigMesh device control abstract Unit
meshGroupPublishDps(String meshId, String localId, String category, String dps, IResultCallback callback)
mesh device group control abstract Unit
sigMeshGroupPublishDps(String meshId, String localId, String category, String dps, IResultCallback callback)
sigMesh device group control abstract Unit
batchExecuteDeviceDps(List<BatchExecutionDps> 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 ,IResultCallback)>executeScene(<ERROR CLASS> normalScene, IResultCallback 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, IResultCallback callback)
Execute scenarios in the cloud
- Parameters:
sceneId
- the id of scene to executecallback
- callback IResultCallback
-
getStandardInfo
abstract Unit getStandardInfo(List<String> meshIds, IResultCallback 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, IResultCallback callback)
Group control except mesh, sigMesh group devices
- Parameters:
groupId
- the id of the devicedps
- the dps that deliver controlcallback
- callback IResultCallback
-
infraredPublishDps
abstract Unit infraredPublishDps(String infraGwId, String subDeviceId, String actionDps, String reportDps, IResultCallback callback)
Infrared device control
- Parameters:
infraGwId
- the id of the infrared gatewaysubDeviceId
- the id of the infrared deviceactionDps
- the dps that deliver controlreportDps
- the dps that deliver reportcallback
- callback IResultCallback
-
publishDps
abstract Unit publishDps(String deviceId, String dps, IResultCallback 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, IResultCallback 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, IResultCallback 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, IResultCallback 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, IResultCallback 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, IResultCallback 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, IResultCallback 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, IResultCallback 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<BatchExecutionDps> 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
-
-
-
-