Package 

Interface IExecuteService

    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 scene
        callback - callback IResultCallback
      • executeSceneOnCloud

         abstract Unit )>executeSceneOnCloud(String sceneId, <ERROR CLASS> callback)

        Execute scenarios in the cloud

        Parameters:
        sceneId - the id of scene to execute
        callback - 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 gateway
        callback - 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 device
        dps - the dps that deliver control
        callback - 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 device
        dps - the dps that deliver control
        callback - 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 scene
        sceneId - the id of scene to execute
        callback - 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 scene
        sceneId - the id of scene to execute
        callback - 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 scene
        gid - similar group id, but not a regular group id
        sid - similar scene id, but not a regular scene id
        callback - 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 points
        callback - 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 points
        callback - 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 network
        category - category mark of equipment
        dps - data points
        callback - 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 network
        category - category mark of equipment
        dps - data points
        callback - 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 list
        retryCount - 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 device
        listener - listener
      • registerGroupListener

         abstract Unit registerGroupListener(Long groupId, Function2<Long, String, Unit> listener)

        Register group device monitoring

        Parameters:
        groupId - the id of the group
        listener - 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
      • onDestroy

         abstract Unit onDestroy()

        when destroy