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