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 |
onReadRequest(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute) |
void |
start()
Starts this current time server.
|
void |
stop()
Stops this current time server.
|
public CurrentTimeServer(ej.bluetooth.BluetoothService service)
service - the current time service provided by this device.java.lang.IllegalArgumentException - if one of the mandatory attributes of the service is missing.public void start()
public void stop()
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