public abstract static class MetaWearController.DeviceCallbacks
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MetaWearController.DeviceCallbacks.GattOperation
Enumeration of GATT operations the
receivedGattError
callback method reports |
Constructor and Description |
---|
MetaWearController.DeviceCallbacks() |
Modifier and Type | Method and Description |
---|---|
void |
connected()
Bluetooth Le connection established
|
void |
disconnected()
Bluetooth Le connection lost
|
void |
receivedGATTCharacteristic(GATT.GATTCharacteristic characteristic,
byte[] data)
The data from a GATT characteristic was received
|
void |
receivedGattError(MetaWearController.DeviceCallbacks.GattOperation gattOp,
int status)
Called when a GATT operation returns an error
|
void |
receivedRemoteRSSI(int rssi)
Remote RSSI value received from the device
|
public void connected()
public void disconnected()
public void receivedGATTCharacteristic(GATT.GATTCharacteristic characteristic, byte[] data)
characteristic
- Characteristic that was readdata
- Bytes read from the characteristicpublic void receivedRemoteRSSI(int rssi)
rssi
- RSSI value for the remote devicepublic void receivedGattError(MetaWearController.DeviceCallbacks.GattOperation gattOp, int status)
gattOp
- GATT operation that returned the errorstatus
- Status code returned in one of the
android.bluetooth.BluetoothGattCallback
callback functions