TinyCTS
Bluetooth Current Time Service client and server for Arduino
Loading...
Searching...
No Matches
tiny_cts::TinyCTSBlueZPeripheral Class Reference

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>

Inheritance diagram for tiny_cts::TinyCTSBlueZPeripheral:
tiny_cts::TinyCTSPeripheral

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

Detailed Description

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.

Member Function Documentation

◆ notify()

void tiny_cts::TinyCTSBlueZPeripheral::notify ( uint16_t uuid,
const std::vector< uint8_t > & value )
inlineoverridevirtual

Send the new value of a characteristic to the subscribed clients.

Implements tiny_cts::TinyCTSPeripheral.

◆ process()

void tiny_cts::TinyCTSBlueZPeripheral::process ( )
inlineoverridevirtual

Handle the requests, if the stack needs the application to do that.

Implements tiny_cts::TinyCTSPeripheral.

◆ start()

bool tiny_cts::TinyCTSBlueZPeripheral::start ( const std::string & name,
bool settable,
bool encrypted,
TinyCTSPeripheralHandler * handler,
std::string & error )
inlineoverridevirtual

Register the service and start the advertising.

Parameters
settableThe clients may write Current Time and Local Time Information.
encryptedWriting needs an encrypted (paired) connection.

Implements tiny_cts::TinyCTSPeripheral.

◆ stop()

void tiny_cts::TinyCTSBlueZPeripheral::stop ( )
inlineoverridevirtual

Stop.

Implements tiny_cts::TinyCTSPeripheral.


The documentation for this class was generated from the following file: