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 |
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 |
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.ConnectionListener
public void onScanCompleted()
onScanCompleted
in interface ej.bluetooth.listeners.ConnectionListener
public void onAdvertisementCompleted()
onAdvertisementCompleted
in interface ej.bluetooth.listeners.ConnectionListener
public void onConnectFailed(ej.bluetooth.BluetoothAddress address)
onConnectFailed
in interface ej.bluetooth.listeners.ConnectionListener
public void onConnected(ej.bluetooth.BluetoothConnection connection)
onConnected
in interface ej.bluetooth.listeners.ConnectionListener
public void onDisconnected(ej.bluetooth.BluetoothConnection connection)
onDisconnected
in interface ej.bluetooth.listeners.ConnectionListener
public void onPairRequest(ej.bluetooth.BluetoothConnection connection)
onPairRequest
in interface ej.bluetooth.listeners.ConnectionListener
public void onPairCompleted(ej.bluetooth.BluetoothConnection connection, boolean success)
onPairCompleted
in interface ej.bluetooth.listeners.ConnectionListener
public void onPasskeyRequest(ej.bluetooth.BluetoothConnection connection)
onPasskeyRequest
in interface ej.bluetooth.listeners.ConnectionListener
public void onPasskeyGenerated(ej.bluetooth.BluetoothConnection connection, int passkey)
onPasskeyGenerated
in interface ej.bluetooth.listeners.ConnectionListener
public void onDiscoveryResult(ej.bluetooth.BluetoothConnection connection, ej.bluetooth.BluetoothService service)
onDiscoveryResult
in interface ej.bluetooth.listeners.ConnectionListener
public void onDiscoveryCompleted(ej.bluetooth.BluetoothConnection connection)
onDiscoveryCompleted
in interface ej.bluetooth.listeners.ConnectionListener
public void onReadCompleted(ej.bluetooth.BluetoothConnection connection, ej.bluetooth.BluetoothAttribute attribute, byte status, byte[] value)
onReadCompleted
in interface ej.bluetooth.listeners.RemoteServiceListener
public void onWriteCompleted(ej.bluetooth.BluetoothConnection connection, ej.bluetooth.BluetoothAttribute attribute, byte status)
onWriteCompleted
in interface ej.bluetooth.listeners.RemoteServiceListener
public void onNotificationReceived(ej.bluetooth.BluetoothConnection connection, ej.bluetooth.BluetoothCharacteristic characteristic, byte[] value)
onNotificationReceived
in interface ej.bluetooth.listeners.RemoteServiceListener
public void onReadRequest(ej.bluetooth.BluetoothConnection connection, ej.bluetooth.BluetoothAttribute attribute)
onReadRequest
in interface ej.bluetooth.listeners.LocalServiceListener
public void onWriteRequest(ej.bluetooth.BluetoothConnection connection, ej.bluetooth.BluetoothAttribute attribute, byte[] value)
onWriteRequest
in interface ej.bluetooth.listeners.LocalServiceListener
public void onNotificationSent(ej.bluetooth.BluetoothConnection connection, ej.bluetooth.BluetoothCharacteristic characteristic, boolean success)
onNotificationSent
in interface ej.bluetooth.listeners.LocalServiceListener