TinyCTS
Bluetooth Current Time Service client and server for Arduino
Loading...
Searching...
No Matches
TinyCTSDesktop.h File Reference

The interface between the desktop classes TinyCTSClient/TinyCTSServer and the Bluetooth stack of the operating system: BlueZ (Linux), CoreBluetooth (macOS) and WinRT (Windows). The functions block until they are done; every OS implements the two classes below. More...

Go to the source code of this file.

Classes

class  tiny_cts::TinyCTSCentral
 The client side (central role) of the Bluetooth stack of the operating system: finds a device, connects to it and reads or writes the characteristics of its Current Time Service. More...
class  tiny_cts::TinyCTSPeripheral
 The server side (peripheral role) of the Bluetooth stack of the operating system: offers the Current Time Service (0x1805) with the characteristics Current Time (read, notify, write), Local Time Information (read, write) and Reference Time Information (read), and advertises it. More...
class  tiny_cts::TinyCTSPeripheralHandler
 The callbacks of a TinyCTSPeripheral: it asks the handler for the value when a client reads a characteristic, and passes on what a client writes. TinyCTSServer implements it. More...
struct  tiny_cts::TinyCTSScanEntry
 A device that was found by TinyCTSClient::scan(). More...

Functions

std::unique_ptr< TinyCTSCentral > tiny_cts::ctsCreateCentral (const std::string &adapter)
std::unique_ptr< TinyCTSPeripheral > tiny_cts::ctsCreatePeripheral (const std::string &adapter)

Detailed Description

The interface between the desktop classes TinyCTSClient/TinyCTSServer and the Bluetooth stack of the operating system: BlueZ (Linux), CoreBluetooth (macOS) and WinRT (Windows). The functions block until they are done; every OS implements the two classes below.

Function Documentation

◆ ctsCreateCentral()

std::unique_ptr< TinyCTSCentral > tiny_cts::ctsCreateCentral ( const std::string & adapter)
inline

The client side of this operating system.

Parameters
adapterLinux: hci0

◆ ctsCreatePeripheral()

std::unique_ptr< TinyCTSPeripheral > tiny_cts::ctsCreatePeripheral ( const std::string & adapter)
inline

The server side of this operating system.

Parameters
adapterLinux: hci0