Class EventSerializer
- java.lang.Object
-
- ej.library.iot.rcommand.bluetooth.EventSerializer
-
- All Implemented Interfaces:
ConnectionListener,LocalServiceListener,RemoteServiceListener
public class EventSerializer extends Object implements ConnectionListener, RemoteServiceListener, LocalServiceListener
-
-
Constructor Summary
Constructors Constructor Description EventSerializer(BluetoothController controller)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ej.bluetooth.listeners.ConnectionListener
onScanResult
-
-
-
-
Constructor Detail
-
EventSerializer
public EventSerializer(BluetoothController controller)
-
-
Method Detail
-
onScanResult
public void onScanResult(BluetoothAddress address, byte[] advertisementData, int rssi)
-
onScanCompleted
public void onScanCompleted()
- Specified by:
onScanCompletedin interfaceConnectionListener
-
onAdvertisementCompleted
public void onAdvertisementCompleted()
- Specified by:
onAdvertisementCompletedin interfaceConnectionListener
-
onConnectFailed
public void onConnectFailed(BluetoothAddress address)
- Specified by:
onConnectFailedin interfaceConnectionListener
-
onConnected
public void onConnected(BluetoothConnection connection)
- Specified by:
onConnectedin interfaceConnectionListener
-
onDisconnected
public void onDisconnected(BluetoothConnection connection)
- Specified by:
onDisconnectedin interfaceConnectionListener
-
onPairRequest
public void onPairRequest(BluetoothConnection connection)
- Specified by:
onPairRequestin interfaceConnectionListener
-
onPairCompleted
public void onPairCompleted(BluetoothConnection connection, boolean success)
- Specified by:
onPairCompletedin interfaceConnectionListener
-
onPasskeyRequest
public void onPasskeyRequest(BluetoothConnection connection)
- Specified by:
onPasskeyRequestin interfaceConnectionListener
-
onPasskeyGenerated
public void onPasskeyGenerated(BluetoothConnection connection, int passkey)
- Specified by:
onPasskeyGeneratedin interfaceConnectionListener
-
onDiscoveryResult
public void onDiscoveryResult(BluetoothConnection connection, BluetoothService service)
- Specified by:
onDiscoveryResultin interfaceConnectionListener
-
onDiscoveryCompleted
public void onDiscoveryCompleted(BluetoothConnection connection)
- Specified by:
onDiscoveryCompletedin interfaceConnectionListener
-
onReadCompleted
public void onReadCompleted(BluetoothConnection connection, BluetoothAttribute attribute, byte status, byte[] value)
- Specified by:
onReadCompletedin interfaceRemoteServiceListener
-
onWriteCompleted
public void onWriteCompleted(BluetoothConnection connection, BluetoothAttribute attribute, byte status)
- Specified by:
onWriteCompletedin interfaceRemoteServiceListener
-
onNotificationReceived
public void onNotificationReceived(BluetoothConnection connection, BluetoothCharacteristic characteristic, byte[] value)
- Specified by:
onNotificationReceivedin interfaceRemoteServiceListener
-
onReadRequest
public void onReadRequest(BluetoothConnection connection, BluetoothAttribute attribute)
- Specified by:
onReadRequestin interfaceLocalServiceListener
-
onReadBlobRequest
public void onReadBlobRequest(BluetoothConnection connection, BluetoothAttribute attribute, int offset)
- Specified by:
onReadBlobRequestin interfaceLocalServiceListener
-
onWriteRequest
public void onWriteRequest(BluetoothConnection connection, BluetoothAttribute attribute, byte[] value)
- Specified by:
onWriteRequestin interfaceLocalServiceListener
-
onPrepareWriteRequest
public void onPrepareWriteRequest(BluetoothConnection connection, BluetoothAttribute attribute, byte[] value, int offset)
- Specified by:
onPrepareWriteRequestin interfaceLocalServiceListener
-
onExecuteWriteRequest
public void onExecuteWriteRequest(BluetoothConnection connection, BluetoothAttribute attribute, boolean execute)
- Specified by:
onExecuteWriteRequestin interfaceLocalServiceListener
-
onNotificationSent
public void onNotificationSent(BluetoothConnection connection, BluetoothCharacteristic characteristic, boolean success)
- Specified by:
onNotificationSentin interfaceLocalServiceListener
-
-