public static interface IBreezeDevice.ResponseCallback
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_GATT
android 系统gatt 错误
|
static int |
ERROR_TIMEOUT
超时
|
static int |
ERROR_UNKNOWN
其他未知错误
|
static int |
NO_ERROR
成功
|
Modifier and Type | Method and Description |
---|---|
void |
onResponse(int code,
byte[] data)
当设备有回复数据时触发
|
static final int NO_ERROR
static final int ERROR_TIMEOUT
static final int ERROR_GATT
static final int ERROR_UNKNOWN
void onResponse(int code, byte[] data)
code
- 错误码,取下列值:
NO_ERROR
, ERROR_TIMEOUT
,
ERROR_GATT
,ERROR_UNKNOWN
,data
- 设备数据