herald
2.0.0
|
A set of variant typed Sensor Delegate instances. Delegate callbacks can be invoked on the whole set, if supported by each. More...
#include <sensor_delegate.h>
Public Member Functions | |
SensorDelegateSet (SensorDelegateTs &... dels) | |
void | sensor (SensorType sensor, const TargetIdentifier &didDetect) |
Detection of a target with an ephemeral identifier, e.g. BLE central detecting a BLE peripheral. | |
void | sensor (SensorType sensor, const PayloadData &didRead, const TargetIdentifier &fromTarget) |
Read payload data from target, e.g. encrypted device identifier from BLE peripheral after successful connection. | |
void | sensor (SensorType sensor, const ImmediateSendData &didReceive, const TargetIdentifier &fromTarget) |
Receive written immediate send data from target, e.g. important timing signal. | |
void | sensor (SensorType sensor, const DataSections< 8 > &didShare, const TargetIdentifier &fromTarget) |
Read payload data of other targets recently acquired by a target, e.g. Android peripheral sharing payload data acquired from nearby iOS peripherals. | |
void | sensor (SensorType sensor, const Proximity &didMeasure, const TargetIdentifier &fromTarget) |
Measure proximity to target, e.g. a sample of RSSI values from BLE peripheral. | |
template<typename LocationT > | |
void | sensor (SensorType sensor, const Location< LocationT > &didVisit) |
Detection of time spent at location, e.g. at specific restaurant between 02/06/2020 19:00 and 02/06/2020 21:00. | |
void | sensor (SensorType sensor, const Proximity &didMeasure, const TargetIdentifier &fromTarget, const PayloadData &withPayload) |
Measure proximity to target with payload data. Combines didMeasure and didRead into a single convenient delegate method. | |
void | sensor (SensorType sensor, const SensorState &didUpdateState) |
Sensor state update. | |
Static Public Attributes | |
static constexpr std::size_t | Size = sizeof...(SensorDelegateTs) |
A set of variant typed Sensor Delegate instances. Delegate callbacks can be invoked on the whole set, if supported by each.