|
TinyCTS
Bluetooth Current Time Service client and server for Arduino
|
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...
#include <TinyCTSDesktop.h>
Public Member Functions | |
| virtual bool | onRead (uint16_t uuid, std::vector< uint8_t > &value)=0 |
| virtual bool | onWrite (uint16_t uuid, const uint8_t *data, size_t len)=0 |
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.
The functions may be called from a thread of the Bluetooth stack (macOS, Windows) or from TinyCTSPeripheral::process() (Linux).
|
pure virtual |
A client reads a characteristic: return its value.
Implemented in tiny_cts::TinyCTSServer.
|
pure virtual |
A client writes a characteristic: return false to refuse.
Implemented in tiny_cts::TinyCTSServer.