public class EventSerializer
extends java.lang.Object
implements ej.bluetooth.listeners.ConnectionListener, ej.bluetooth.listeners.RemoteServiceListener, ej.bluetooth.listeners.LocalServiceListener
| Constructor and Description |
|---|
EventSerializer(BluetoothController controller) |
| Modifier and Type | Method and Description |
|---|---|
void |
onAdvertisementCompleted() |
void |
onConnected(ej.bluetooth.BluetoothConnection connection) |
void |
onConnectFailed(ej.bluetooth.BluetoothAddress address) |
void |
onDisconnected(ej.bluetooth.BluetoothConnection connection) |
void |
onDiscoveryCompleted(ej.bluetooth.BluetoothConnection connection) |
void |
onDiscoveryResult(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothService service) |
void |
onExecuteWriteRequest(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute,
boolean execute) |
void |
onNotificationReceived(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothCharacteristic characteristic,
byte[] value) |
void |
onNotificationSent(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothCharacteristic characteristic,
boolean success) |
void |
onPairCompleted(ej.bluetooth.BluetoothConnection connection,
boolean success) |
void |
onPairRequest(ej.bluetooth.BluetoothConnection connection) |
void |
onPasskeyGenerated(ej.bluetooth.BluetoothConnection connection,
int passkey) |
void |
onPasskeyRequest(ej.bluetooth.BluetoothConnection connection) |
void |
onPrepareWriteRequest(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute,
byte[] value,
int offset) |
void |
onReadBlobRequest(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute,
int offset) |
void |
onReadCompleted(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute,
byte status,
byte[] value) |
void |
onReadRequest(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute) |
void |
onScanCompleted() |
void |
onScanResult(ej.bluetooth.BluetoothAddress address,
byte[] advertisementData,
int rssi) |
void |
onWriteCompleted(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute,
byte status) |
void |
onWriteRequest(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute,
byte[] value) |
public EventSerializer(BluetoothController controller)
public void onScanResult(ej.bluetooth.BluetoothAddress address,
byte[] advertisementData,
int rssi)
onScanResult in interface ej.bluetooth.listeners.ConnectionListenerpublic void onScanCompleted()
onScanCompleted in interface ej.bluetooth.listeners.ConnectionListenerpublic void onAdvertisementCompleted()
onAdvertisementCompleted in interface ej.bluetooth.listeners.ConnectionListenerpublic void onConnectFailed(ej.bluetooth.BluetoothAddress address)
onConnectFailed in interface ej.bluetooth.listeners.ConnectionListenerpublic void onConnected(ej.bluetooth.BluetoothConnection connection)
onConnected in interface ej.bluetooth.listeners.ConnectionListenerpublic void onDisconnected(ej.bluetooth.BluetoothConnection connection)
onDisconnected in interface ej.bluetooth.listeners.ConnectionListenerpublic void onPairRequest(ej.bluetooth.BluetoothConnection connection)
onPairRequest in interface ej.bluetooth.listeners.ConnectionListenerpublic void onPairCompleted(ej.bluetooth.BluetoothConnection connection,
boolean success)
onPairCompleted in interface ej.bluetooth.listeners.ConnectionListenerpublic void onPasskeyRequest(ej.bluetooth.BluetoothConnection connection)
onPasskeyRequest in interface ej.bluetooth.listeners.ConnectionListenerpublic void onPasskeyGenerated(ej.bluetooth.BluetoothConnection connection,
int passkey)
onPasskeyGenerated in interface ej.bluetooth.listeners.ConnectionListenerpublic void onDiscoveryResult(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothService service)
onDiscoveryResult in interface ej.bluetooth.listeners.ConnectionListenerpublic void onDiscoveryCompleted(ej.bluetooth.BluetoothConnection connection)
onDiscoveryCompleted in interface ej.bluetooth.listeners.ConnectionListenerpublic void onReadCompleted(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute,
byte status,
byte[] value)
onReadCompleted in interface ej.bluetooth.listeners.RemoteServiceListenerpublic void onWriteCompleted(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute,
byte status)
onWriteCompleted in interface ej.bluetooth.listeners.RemoteServiceListenerpublic void onNotificationReceived(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothCharacteristic characteristic,
byte[] value)
onNotificationReceived in interface ej.bluetooth.listeners.RemoteServiceListenerpublic void onReadRequest(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute)
onReadRequest in interface ej.bluetooth.listeners.LocalServiceListenerpublic void onReadBlobRequest(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute,
int offset)
onReadBlobRequest in interface ej.bluetooth.listeners.LocalServiceListenerpublic void onWriteRequest(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute,
byte[] value)
onWriteRequest in interface ej.bluetooth.listeners.LocalServiceListenerpublic void onPrepareWriteRequest(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute,
byte[] value,
int offset)
onPrepareWriteRequest in interface ej.bluetooth.listeners.LocalServiceListenerpublic void onExecuteWriteRequest(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute,
boolean execute)
onExecuteWriteRequest in interface ej.bluetooth.listeners.LocalServiceListenerpublic void onNotificationSent(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothCharacteristic characteristic,
boolean success)
onNotificationSent in interface ej.bluetooth.listeners.LocalServiceListener