Package ej.bluetooth.util.services.cts
Class CurrentTimeServer
- java.lang.Object
-
- ej.bluetooth.listeners.impl.DefaultLocalServiceListener
-
- ej.bluetooth.util.services.cts.CurrentTimeServer
-
- All Implemented Interfaces:
ej.bluetooth.listeners.LocalServiceListener
public class CurrentTimeServer extends ej.bluetooth.listeners.impl.DefaultLocalServiceListenerTheCurrentTimeServerclass represents a current time server.
-
-
Constructor Summary
Constructors Constructor Description CurrentTimeServer(ej.bluetooth.BluetoothService service)Creates a current time server, using the current time service provided by this device.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonReadRequest(ej.bluetooth.BluetoothConnection connection, ej.bluetooth.BluetoothAttribute attribute)voidstart()Starts this current time server.voidstop()Stops this current time server.
-
-
-
Constructor Detail
-
CurrentTimeServer
public CurrentTimeServer(ej.bluetooth.BluetoothService service)
Creates a current time server, using the current time service provided by this device.- Parameters:
service- the current time service provided by this device.- Throws:
java.lang.IllegalArgumentException- if one of the mandatory attributes of the service is missing.
-
-
Method Detail
-
start
public void start()
Starts this current time server.
-
stop
public void stop()
Stops this current time server.
-
onReadRequest
public void onReadRequest(ej.bluetooth.BluetoothConnection connection, ej.bluetooth.BluetoothAttribute attribute)- Specified by:
onReadRequestin interfaceej.bluetooth.listeners.LocalServiceListener- Overrides:
onReadRequestin classej.bluetooth.listeners.impl.DefaultLocalServiceListener
-
-