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 | Class and Description |
---|---|
class |
BluetoothCharacteristic
The
BluetoothCharacteristic class represents a remote or a local GATT characteristic. |
class |
BluetoothDescriptor
The
BluetoothDescriptor class represents a remote or a local GATT descriptor. |
Modifier and Type | Method and Description |
---|---|
boolean |
BluetoothConnection.sendExecuteWriteResponse(BluetoothAttribute attribute,
byte status)
Sends the response to an execute write request sent by a device on the given attribute.
|
boolean |
BluetoothConnection.sendPrepareWriteResponse(BluetoothAttribute attribute,
byte status,
byte[] value,
int offset)
Sends the response to a prepare write request sent by a device on the given attribute.
|
boolean |
BluetoothConnection.sendReadRequest(BluetoothAttribute attribute)
Sends a read request on the given attribute.
|
boolean |
BluetoothConnection.sendReadResponse(BluetoothAttribute attribute,
byte status,
byte[] value)
Sends the response to a read request sent by a device on the given attribute.
|
boolean |
BluetoothConnection.sendWriteRequest(BluetoothAttribute attribute,
byte[] value)
Sends a write request on the given attribute.
|
boolean |
BluetoothConnection.sendWriteResponse(BluetoothAttribute attribute,
byte status)
Sends the response to a write request sent by a device on the given attribute.
|
Modifier and Type | Method and Description |
---|---|
void |
LocalServiceListener.onExecuteWriteRequest(BluetoothConnection connection,
BluetoothAttribute attribute,
boolean execute)
Called when an execute write request is received.
|
void |
LocalServiceListener.onPrepareWriteRequest(BluetoothConnection connection,
BluetoothAttribute attribute,
byte[] value,
int offset)
Called when a prepare write request is received.
|
void |
LocalServiceListener.onReadBlobRequest(BluetoothConnection connection,
BluetoothAttribute attribute,
int offset)
Called when a read blob request is received.
|
void |
RemoteServiceListener.onReadCompleted(BluetoothConnection connection,
BluetoothAttribute attribute,
byte status,
byte[] value)
Called when a response to a read request is received.
|
void |
LocalServiceListener.onReadRequest(BluetoothConnection connection,
BluetoothAttribute attribute)
Called when a read request is received.
|
void |
RemoteServiceListener.onWriteCompleted(BluetoothConnection connection,
BluetoothAttribute attribute,
byte status)
Called when a response to a write request is received.
|
void |
LocalServiceListener.onWriteRequest(BluetoothConnection connection,
BluetoothAttribute attribute,
byte[] value)
Called when a write request is received.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultLocalServiceListener.onExecuteWriteRequest(BluetoothConnection connection,
BluetoothAttribute attribute,
boolean execute) |
void |
DefaultLocalServiceListener.onPrepareWriteRequest(BluetoothConnection connection,
BluetoothAttribute attribute,
byte[] value,
int offset) |
void |
DefaultLocalServiceListener.onReadBlobRequest(BluetoothConnection connection,
BluetoothAttribute attribute,
int offset) |
void |
DefaultRemoteServiceListener.onReadCompleted(BluetoothConnection connection,
BluetoothAttribute attribute,
byte status,
byte[] value) |
void |
DefaultLocalServiceListener.onReadRequest(BluetoothConnection connection,
BluetoothAttribute attribute) |
void |
DefaultRemoteServiceListener.onWriteCompleted(BluetoothConnection connection,
BluetoothAttribute attribute,
byte status) |
void |
DefaultLocalServiceListener.onWriteRequest(BluetoothConnection connection,
BluetoothAttribute attribute,
byte[] value) |