public abstract class DispatchGattCallback
extends android.bluetooth.BluetoothGattCallback
Modifier and Type | Class and Description |
---|---|
static class |
DispatchGattCallback.ConnectionStateChangeEvent |
static class |
DispatchGattCallback.EventType |
Constructor and Description |
---|
DispatchGattCallback() |
Modifier and Type | Method and Description |
---|---|
io.reactivex.Observable<DispatchGattCallback.ConnectionStateChangeEvent> |
getConnectionState$() |
io.reactivex.Observable<com.iotize.android.communication.protocol.ble.rx.DispatchGattCallback.EventPayload> |
getErrors$() |
io.reactivex.Observable<com.iotize.android.communication.protocol.ble.rx.DispatchGattCallback.EventPayload> |
getEvents() |
void |
onCharacteristicChanged(android.bluetooth.BluetoothGatt gatt,
android.bluetooth.BluetoothGattCharacteristic characteristic)
Characteristic changed handler
DESC: Called always when characteristic is changed, i.e.
|
void |
onCharacteristicRead(android.bluetooth.BluetoothGatt gatt,
android.bluetooth.BluetoothGattCharacteristic bluetoothGattCharacteristic,
int status)
Characteristic read handler
DESC: Called always when characteristic read completed
|
void |
onCharacteristicWrite(android.bluetooth.BluetoothGatt gatt,
android.bluetooth.BluetoothGattCharacteristic bluetoothGattCharacteristic,
int status)
Characteristic Write handler
DESC: Called always when characteristic write completed
|
void |
onConnectionStateChange(android.bluetooth.BluetoothGatt gatt,
int status,
int newState)
Connection state change handler
DESC: Called always when connection state changes
|
void |
onDescriptorRead(android.bluetooth.BluetoothGatt gatt,
android.bluetooth.BluetoothGattDescriptor descriptor,
int status) |
void |
onDescriptorWrite(android.bluetooth.BluetoothGatt gatt,
android.bluetooth.BluetoothGattDescriptor descriptor,
int status)
Characteristic Descriptor Write handler
DESC: Called always when characteristic desc. write completed
|
void |
onMtuChanged(android.bluetooth.BluetoothGatt gatt,
int mtu,
int status) |
void |
onPhyRead(android.bluetooth.BluetoothGatt gatt,
int txPhy,
int rxPhy,
int status) |
void |
onPhyUpdate(android.bluetooth.BluetoothGatt gatt,
int txPhy,
int rxPhy,
int status) |
void |
onReadRemoteRssi(android.bluetooth.BluetoothGatt gatt,
int rssi,
int status) |
void |
onReliableWriteCompleted(android.bluetooth.BluetoothGatt gatt,
int status) |
void |
onServicesDiscovered(android.bluetooth.BluetoothGatt gatt,
int status)
Services discovered handler
DESC: Called always when all services discovered
|
public io.reactivex.Observable<DispatchGattCallback.ConnectionStateChangeEvent> getConnectionState$()
public io.reactivex.Observable<com.iotize.android.communication.protocol.ble.rx.DispatchGattCallback.EventPayload> getEvents()
public void onConnectionStateChange(android.bluetooth.BluetoothGatt gatt, int status, int newState)
onConnectionStateChange
in class android.bluetooth.BluetoothGattCallback
public void onServicesDiscovered(android.bluetooth.BluetoothGatt gatt, int status)
onServicesDiscovered
in class android.bluetooth.BluetoothGattCallback
public void onCharacteristicRead(android.bluetooth.BluetoothGatt gatt, android.bluetooth.BluetoothGattCharacteristic bluetoothGattCharacteristic, int status)
onCharacteristicRead
in class android.bluetooth.BluetoothGattCallback
public void onCharacteristicChanged(android.bluetooth.BluetoothGatt gatt, android.bluetooth.BluetoothGattCharacteristic characteristic)
onCharacteristicChanged
in class android.bluetooth.BluetoothGattCallback
public void onCharacteristicWrite(android.bluetooth.BluetoothGatt gatt, android.bluetooth.BluetoothGattCharacteristic bluetoothGattCharacteristic, int status)
onCharacteristicWrite
in class android.bluetooth.BluetoothGattCallback
public void onDescriptorWrite(android.bluetooth.BluetoothGatt gatt, android.bluetooth.BluetoothGattDescriptor descriptor, int status)
onDescriptorWrite
in class android.bluetooth.BluetoothGattCallback
public void onMtuChanged(android.bluetooth.BluetoothGatt gatt, int mtu, int status)
onMtuChanged
in class android.bluetooth.BluetoothGattCallback
public void onPhyUpdate(android.bluetooth.BluetoothGatt gatt, int txPhy, int rxPhy, int status)
onPhyUpdate
in class android.bluetooth.BluetoothGattCallback
public void onPhyRead(android.bluetooth.BluetoothGatt gatt, int txPhy, int rxPhy, int status)
onPhyRead
in class android.bluetooth.BluetoothGattCallback
public void onDescriptorRead(android.bluetooth.BluetoothGatt gatt, android.bluetooth.BluetoothGattDescriptor descriptor, int status)
onDescriptorRead
in class android.bluetooth.BluetoothGattCallback
public void onReliableWriteCompleted(android.bluetooth.BluetoothGatt gatt, int status)
onReliableWriteCompleted
in class android.bluetooth.BluetoothGattCallback
public void onReadRemoteRssi(android.bluetooth.BluetoothGatt gatt, int rssi, int status)
onReadRemoteRssi
in class android.bluetooth.BluetoothGattCallback
public io.reactivex.Observable<com.iotize.android.communication.protocol.ble.rx.DispatchGattCallback.EventPayload> getErrors$()