-
public interface IThingBleConfigListener
Device activation callback
-
-
Method Summary
Modifier and Type Method Description abstract void
onSuccess(DeviceBean bean)
device active success callback abstract void
onFail(String code, String msg, Object handle)
error callbackCONFIG_DEVICE_INFO_GET_ERROR = 101;CONFIG_DEVICE_INFO_GET_SUCCESS = 102;CONFIG_SERVER_REGISTER_ERROR = 103;CONFIG_SERVER_REGISTER_SUCCESS = 104;CONFIG_SERVER_ACTIVE_ERROR = 105;CONFIG_SERVER_ACTIVE_SUCCESS = 106;CONFIG_DEVICE_PAIR_ERROR = 107;CONFIG_DEVICE_PAIR_SUCCESS = 108;CONFIG_ERROR_AUTH_KEY = 110;CONFIG_TIME_OUT = 111;CONFIG_UNBIND_SUCCESS = 112;CONFIG_CANCEL = 113;CONFIG_SERVER_ALREADY_BIND = 114;CONFIG_DEVICE_RESET_PWD_ERROR = 115;CONFIG_SERVER_DEVICE_DETAIL_ERROR = 116;CONFIG_READY_FOR_PAIR = 117;CONFIG_DEVICE_NOT_FOUND = 120;CONFIG_DEVICE_INFO_TIMEOUT = 121;CONFIG_DOUBLE_AUTH = 122;CONFIG_DOUBLE_AUTH_ERROR = 123;CONFIG_GUEST_SERVER_ALREADY_BIND = 124;CONFIG_DEVICE_ALREADY_BIND = 125; -
-
Method Detail
-
onSuccess
abstract void onSuccess(DeviceBean bean)
device active success callback
- Parameters:
bean
- the model of new device.
-
onFail
abstract void onFail(String code, String msg, Object handle)
error callback
CONFIG_DEVICE_INFO_GET_ERROR = 101;CONFIG_DEVICE_INFO_GET_SUCCESS = 102;CONFIG_SERVER_REGISTER_ERROR = 103;CONFIG_SERVER_REGISTER_SUCCESS = 104;CONFIG_SERVER_ACTIVE_ERROR = 105;CONFIG_SERVER_ACTIVE_SUCCESS = 106;CONFIG_DEVICE_PAIR_ERROR = 107;CONFIG_DEVICE_PAIR_SUCCESS = 108;CONFIG_ERROR_AUTH_KEY = 110;CONFIG_TIME_OUT = 111;CONFIG_UNBIND_SUCCESS = 112;CONFIG_CANCEL = 113;CONFIG_SERVER_ALREADY_BIND = 114;CONFIG_DEVICE_RESET_PWD_ERROR = 115;CONFIG_SERVER_DEVICE_DETAIL_ERROR = 116;CONFIG_READY_FOR_PAIR = 117;CONFIG_DEVICE_NOT_FOUND = 120;CONFIG_DEVICE_INFO_TIMEOUT = 121;CONFIG_DOUBLE_AUTH = 122;CONFIG_DOUBLE_AUTH_ERROR = 123;CONFIG_GUEST_SERVER_ALREADY_BIND = 124;CONFIG_DEVICE_ALREADY_BIND = 125;
- Parameters:
code
- code 101-125 ,see abovemsg
- error msghandle
- When there is a value in some cases, the handle is ConfigErrorBean
-
-
-
-