|
TinyCTS
Bluetooth Current Time Service client and server for Arduino
|
The server side for Linux: exports the Current Time Service as a GATT application and an advertisement on D-Bus and registers them at BlueZ (GattManager1 and LEAdvertisingManager1). BlueZ calls back over D-Bus, so process() has to run the main context of GLib. More...
#include <TinyCTSBlueZBackend.h>
Public Member Functions | |
| TinyCTSBlueZPeripheral (const std::string &adapter) | |
| void | notify (uint16_t uuid, const std::vector< uint8_t > &value) override |
| void | process () override |
| bool | start (const std::string &name, bool settable, bool encrypted, TinyCTSPeripheralHandler *handler, std::string &error) override |
| void | stop () override |
The server side for Linux: exports the Current Time Service as a GATT application and an advertisement on D-Bus and registers them at BlueZ (GattManager1 and LEAdvertisingManager1). BlueZ calls back over D-Bus, so process() has to run the main context of GLib.
|
inlineoverridevirtual |
Send the new value of a characteristic to the subscribed clients.
Implements tiny_cts::TinyCTSPeripheral.
|
inlineoverridevirtual |
Handle the requests, if the stack needs the application to do that.
Implements tiny_cts::TinyCTSPeripheral.
|
inlineoverridevirtual |
Register the service and start the advertising.
| settable | The clients may write Current Time and Local Time Information. |
| encrypted | Writing needs an encrypted (paired) connection. |
Implements tiny_cts::TinyCTSPeripheral.
|
inlineoverridevirtual |
Stop.
Implements tiny_cts::TinyCTSPeripheral.