herald
2.0.0
|
#include <ble_protocols.h>
Public Member Functions | |
virtual bool | openConnection (const TargetIdentifier &toTarget)=0 |
virtual bool | closeConnection (const TargetIdentifier &toTarget)=0 |
virtual void | restartScanningAndAdvertising ()=0 |
virtual std::optional< Activity > | serviceDiscovery (Activity)=0 |
virtual std::optional< Activity > | readPayload (Activity)=0 |
The Herald protocols' low level activities. Implemented by each OS' provider
|
pure virtual |
Closes a connection. Returns true if successful or already disconnected
Implemented in herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, BLEDatabaseT, SensorDelegateSetT >, herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, herald::ble::ConcreteBLEDatabase< ContextT, 10 >, SensorDelegateSetT >, herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, BLEDatabaseT, SensorDelegateSetT >, and herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, herald::ble::ConcreteBLEDatabase< ContextT, 10 >, SensorDelegateSetT >.
|
pure virtual |
Opens a new connection. Returns true if successful or already connected. Will cause scanning and advertising to stop.
Implemented in herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, BLEDatabaseT, SensorDelegateSetT >, herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, herald::ble::ConcreteBLEDatabase< ContextT, 10 >, SensorDelegateSetT >, herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, BLEDatabaseT, SensorDelegateSetT >, and herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, herald::ble::ConcreteBLEDatabase< ContextT, 10 >, SensorDelegateSetT >.
|
pure virtual |
Restart scanning and advertising (if they were previously doing so)
Implemented in herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, BLEDatabaseT, SensorDelegateSetT >, herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, herald::ble::ConcreteBLEDatabase< ContextT, 10 >, SensorDelegateSetT >, herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, BLEDatabaseT, SensorDelegateSetT >, and herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, herald::ble::ConcreteBLEDatabase< ContextT, 10 >, SensorDelegateSetT >.