Package | Description |
---|---|
ej.bluetooth |
Contains Bluetooth classes.
|
ej.bluetooth.callbacks |
Contains interfaces for Bluetooth callbacks.
|
ej.bluetooth.callbacks.impl |
Contains default implementations for Bluetooth callbacks.
|
Modifier and Type | Method and Description |
---|---|
BluetoothCharacteristic |
BluetoothService.findCharacteristic(BluetoothUuid characteristicUuid)
Finds the characteristic of this service which matches the given UUID.
|
BluetoothCharacteristic |
BluetoothDescriptor.getCharacteristic()
Returns the characteristic to which this descriptor belongs.
|
BluetoothCharacteristic[] |
BluetoothService.getCharacteristics()
Returns the list of characteristics of this service.
|
Modifier and Type | Method and Description |
---|---|
void |
BluetoothService.addCharacteristic(BluetoothCharacteristic characteristic)
Adds a characteristic to this service.
|
Modifier and Type | Method and Description |
---|---|
void |
ClientCallbacks.onNotificationReceived(BluetoothCharacteristic characteristic,
byte[] value)
Called when a characteristic notification is received.
|
void |
ServerCallbacks.onNotificationSent(BluetoothCharacteristic characteristic,
BluetoothDevice device,
boolean success)
Called when a characteristic notification is sent.
|
void |
ClientCallbacks.onReadCompleted(BluetoothCharacteristic characteristic,
int status,
byte[] value)
Called when a response to a read characteristic request is received.
|
void |
ServerCallbacks.onReadRequest(BluetoothCharacteristic characteristic,
BluetoothDevice device)
Called when a read characteristic request is received.
|
void |
ClientCallbacks.onWriteCompleted(BluetoothCharacteristic characteristic,
int status)
Called when a response to a write characteristic request is received.
|
void |
ServerCallbacks.onWriteRequest(BluetoothCharacteristic characteristic,
BluetoothDevice device,
byte[] value)
Called when a write characteristic request is received.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultClientCallbacks.onNotificationReceived(BluetoothCharacteristic characteristic,
byte[] value) |
void |
DefaultServerCallbacks.onNotificationSent(BluetoothCharacteristic characteristic,
BluetoothDevice device,
boolean success) |
void |
DefaultClientCallbacks.onReadCompleted(BluetoothCharacteristic characteristic,
int status,
byte[] value) |
void |
DefaultServerCallbacks.onReadRequest(BluetoothCharacteristic characteristic,
BluetoothDevice device) |
void |
DefaultClientCallbacks.onWriteCompleted(BluetoothCharacteristic characteristic,
int status) |
void |
DefaultServerCallbacks.onWriteRequest(BluetoothCharacteristic characteristic,
BluetoothDevice device,
byte[] value) |