Package | Description |
---|---|
ej.bluetooth |
Contains Bluetooth classes.
|
ej.bluetooth.listeners |
Contains interfaces for Bluetooth listeners.
|
ej.bluetooth.listeners.impl |
Contains default implementations for Bluetooth listeners.
|
Modifier and Type | Method and Description |
---|---|
BluetoothCharacteristic |
BluetoothDescriptor.getCharacteristic()
Returns the characteristic to which this descriptor belongs.
|
BluetoothCharacteristic |
BluetoothService.getCharacteristic(int index)
Returns the characteristic at the given index in this service.
|
Modifier and Type | Method and Description |
---|---|
boolean |
BluetoothConnection.sendNotification(BluetoothCharacteristic characteristic,
byte[] value,
boolean confirm)
Sends a notification or indication on the given characteristic to a device.
|
Modifier and Type | Method and Description |
---|---|
void |
RemoteServiceListener.onNotificationReceived(BluetoothConnection connection,
BluetoothCharacteristic characteristic,
byte[] value)
Called when a characteristic notification or indication is received.
|
void |
LocalServiceListener.onNotificationSent(BluetoothConnection connection,
BluetoothCharacteristic characteristic,
boolean success)
Called when a characteristic notification or indication is sent.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultRemoteServiceListener.onNotificationReceived(BluetoothConnection connection,
BluetoothCharacteristic characteristic,
byte[] value) |
void |
DefaultLocalServiceListener.onNotificationSent(BluetoothConnection connection,
BluetoothCharacteristic characteristic,
boolean success) |