-
public interface DataChannelListenerdata chanel callback listener
-
-
Method Summary
Modifier and Type Method Description abstract voidonSuccess(String json)Will return when the data is successfully received abstract voidonFail(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 -
-
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 codemsg- error msg
-
-
-
-