public static class DevService.breezeSubDevLoginCallback extends java.lang.Object implements IBreeze.ConnectionCallback
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
deviceName |
protected boolean |
isOpening |
protected boolean |
isRetry |
protected DevService.ServiceListener |
onlyOnceServiceListener |
protected java.lang.String |
productKey |
Constructor and Description |
---|
breezeSubDevLoginCallback(java.lang.String productKey,
java.lang.String deviceName,
DevService.ServiceListener onlyOnceServiceListener) |
Modifier and Type | Method and Description |
---|---|
boolean |
isOpening() |
void |
onConnectionStateChange(IBreezeDevice iBreezeDevice,
int state,
int i1)
当设备状态发生变化时触发
|
void |
setOpening(boolean value) |
protected java.lang.String productKey
protected java.lang.String deviceName
protected DevService.ServiceListener onlyOnceServiceListener
protected boolean isOpening
protected boolean isRetry
public breezeSubDevLoginCallback(java.lang.String productKey, java.lang.String deviceName, DevService.ServiceListener onlyOnceServiceListener)
public void setOpening(boolean value)
public boolean isOpening()
public void onConnectionStateChange(IBreezeDevice iBreezeDevice, int state, int i1)
IBreeze.ConnectionCallback
onConnectionStateChange
in interface IBreeze.ConnectionCallback
iBreezeDevice
- breeze设备 BluetoothProfile#STATE_CONNECTED
时才有意义state
- 连接状态,可以是下列值:
BluetoothProfile#STATE_CONNECTING
, BluetoothProfile#STATE_CONNECTED
BluetoothProfile#STATE_DISCONNECTED
, BluetoothProfile#STATE_DISCONNECTED
i1
- 方法完成状态,如果成功为 BluetoothGatt#GATT_SUCCESS
,失败为 BluetoothGatt#GATT_FAILURE