public class BasicServerDescriptor extends ej.bluetooth.BluetoothDescriptor implements ReadWriteCallbackServer
| Constructor and Description |
|---|
BasicServerDescriptor(ej.bluetooth.BluetoothUuid uuid,
int permissions)
Instantiates a
BasicServerDescriptor. |
| Modifier and Type | Method and Description |
|---|---|
void |
onReadRequest(ej.bluetooth.BluetoothDevice device)
Called back when a read request is received.
|
void |
onWriteRequest(ej.bluetooth.BluetoothDevice device,
byte[] value)
Called back when a write request is received.
|
public BasicServerDescriptor(ej.bluetooth.BluetoothUuid uuid,
int permissions)
BasicServerDescriptor.uuid - the uuid to use.permissions - the permissions of the BluetoothDescriptor.public void onWriteRequest(ej.bluetooth.BluetoothDevice device,
byte[] value)
ReadWriteCallbackServeronWriteRequest in interface ReadWriteCallbackServerdevice - the device doing the write request.value - the value to write.public void onReadRequest(ej.bluetooth.BluetoothDevice device)
ReadWriteCallbackServeronReadRequest in interface ReadWriteCallbackServerdevice - the device doing the read request.