public class CurrentTimeServer
extends ej.bluetooth.listeners.impl.DefaultLocalServiceListener
CurrentTimeServer class represents a current time server.| Constructor and Description |
|---|
CurrentTimeServer(ej.bluetooth.BluetoothService service)
Creates a current time server, using the current time service provided by this device.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this current time server.
|
void |
onReadRequest(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute) |
public CurrentTimeServer(ej.bluetooth.BluetoothService service)
throws AttributeNotFoundException
service - the current time service provided by this device.AttributeNotFoundException - if one of the mandatory attributes of the service is missing.public void close()
public void onReadRequest(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute)
onReadRequest in interface ej.bluetooth.listeners.LocalServiceListeneronReadRequest in class ej.bluetooth.listeners.impl.DefaultLocalServiceListener