Package 

Interface IDevCloudControl


  • 
    public interface IDevCloudControl
    
                        

    Publish command by internet, combine HTTP and MQTT.

    • Method Summary

      Modifier and Type Method Description
      abstract void sendCommand(String devId, LinkedHashMap<String, Object> dpMap, String localId, int ctype, String mbid, SandO sandO, IResultCallback callback) Send command by internet.
      abstract void queryCameraData(String devId, LinkedHashMap<String, Object> dpMap, SandO sandO, IResultCallback callback) Query data form device.
      abstract void sendByHttp(String gwId, String devId, String command, String pcc, IResultCallback callback) Send command by HTTP.
      abstract void onDestroy() Recycle resource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • sendCommand

         abstract void sendCommand(String devId, LinkedHashMap<String, Object> dpMap, String localId, int ctype, String mbid, SandO sandO, IResultCallback callback)

        Send command by internet.

      • queryCameraData

         abstract void queryCameraData(String devId, LinkedHashMap<String, Object> dpMap, SandO sandO, IResultCallback callback)

        Query data form device.

        Parameters:
        devId - Device id.
        dpMap - Data agreed with embedded
        sandO - SandO
        callback - Query success or failed.
      • sendByHttp

         abstract void sendByHttp(String gwId, String devId, String command, String pcc, IResultCallback callback)

        Send command by HTTP.

        Parameters:
        gwId - Gateway device id.
        devId - Device id.
        command - dps.
        pcc - Device node id.
        callback - Send success or failed.
      • onDestroy

         abstract void onDestroy()

        Recycle resource.