Package 

Interface DataChannelListener

    • Method Summary

      Modifier and Type Method Description
      abstract void onSuccess(String json) Will return when the data is successfully received
      abstract void onFail(int code, String msg) Will return when something wrongcode:0x100: init error0x101: param error0x102: send error ,or already start0x103: device is disconnect0x104: device busy0x105: not found device id0x106: parse error0x107: upload error0x108: data check error0x109: timeout
      • Methods inherited from class java.lang.Object

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

      • onSuccess

         abstract void onSuccess(String json)

        Will return when the data is successfully received

        Parameters:
        json - the dps's json format
      • onFail

         abstract void onFail(int code, String msg)

        Will return when something wrong

        code:0x100: init error0x101: param error0x102: send error ,or already start0x103: device is disconnect0x104: device busy0x105: not found device id0x106: parse error0x107: upload error0x108: data check error0x109: timeout

        Parameters:
        code - error code
        msg - error msg