Package ej.bluetooth.listeners.impl
Class DefaultLocalServiceListener
- java.lang.Object
-
- ej.bluetooth.listeners.impl.DefaultLocalServiceListener
-
- All Implemented Interfaces:
LocalServiceListener
public class DefaultLocalServiceListener extends java.lang.Object implements LocalServiceListener
-
-
Constructor Summary
Constructors Constructor Description DefaultLocalServiceListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonExecuteWriteRequest(BluetoothConnection connection, BluetoothAttribute attribute, boolean execute)voidonNotificationSent(BluetoothConnection connection, BluetoothCharacteristic characteristic, boolean success)voidonPrepareWriteRequest(BluetoothConnection connection, BluetoothAttribute attribute, byte[] value, int offset)voidonReadBlobRequest(BluetoothConnection connection, BluetoothAttribute attribute, int offset)voidonReadRequest(BluetoothConnection connection, BluetoothAttribute attribute)voidonWriteRequest(BluetoothConnection connection, BluetoothAttribute attribute, byte[] value)
-
-
-
Method Detail
-
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
-
-