herald  2.0.0
Public Member Functions | List of all members
herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, BLEDatabaseT, SensorDelegateSetT > Class Template Reference

Dummy implementation of a ConcreteBLEReceiver that does nothing (used for testing) More...

#include <concrete_ble_receiver.h>

Inheritance diagram for herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, BLEDatabaseT, SensorDelegateSetT >:
herald::ble::HeraldProtocolV1Provider herald::ble::HeraldProtocolV1Provider herald::zephyrinternal::Callbacks

Public Member Functions

 ConcreteBLEReceiver (ContextT &ctx, BluetoothStateManager &bluetoothStateManager, PayloadDataSupplierT &payloadDataSupplier, BLEDatabaseT &bleDatabase, SensorDelegateSetT &dels)
 
 ConcreteBLEReceiver (const ConcreteBLEReceiver &from)=delete
 
 ConcreteBLEReceiver (ConcreteBLEReceiver &&from)=delete
 
std::optional< std::reference_wrapper< CoordinationProvider > > coordinationProvider ()
 
void start ()
 
void stop ()
 
bool openConnection (const TargetIdentifier &toTarget) override
 
bool closeConnection (const TargetIdentifier &toTarget) override
 
void restartScanningAndAdvertising () override
 
std::optional< ActivityserviceDiscovery (Activity) override
 
std::optional< ActivityreadPayload (Activity) override
 
 ConcreteBLEReceiver (ContextT &ctx, BluetoothStateManager &bluetoothStateManager, PayloadDataSupplierT &payloadDataSupplier, BLEDatabaseT &bleDatabase, SensorDelegateSetT &dels)
 
 ConcreteBLEReceiver (const ConcreteBLEReceiver &from)=delete
 
 ConcreteBLEReceiver (ConcreteBLEReceiver &&from)=delete
 
std::optional< std::reference_wrapper< CoordinationProvider > > coordinationProvider ()
 
void start ()
 
void stop ()
 
bool openConnection (const TargetIdentifier &toTarget) override
 
bool closeConnection (const TargetIdentifier &toTarget) override
 
void restartScanningAndAdvertising () override
 
std::optional< ActivityserviceDiscovery (Activity activity) override
 
std::optional< ActivityreadPayload (Activity activity) override
 

Detailed Description

template<typename ContextT, typename PayloadDataSupplierT, typename BLEDatabaseT, typename SensorDelegateSetT>
class herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, BLEDatabaseT, SensorDelegateSetT >

Dummy implementation of a ConcreteBLEReceiver that does nothing (used for testing)

Member Function Documentation

◆ closeConnection() [1/2]

template<typename ContextT , typename PayloadDataSupplierT , typename BLEDatabaseT , typename SensorDelegateSetT >
bool herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, BLEDatabaseT, SensorDelegateSetT >::closeConnection ( const TargetIdentifier toTarget)
inlineoverridevirtual

Closes a connection. Returns true if successful or already disconnected

Implements herald::ble::HeraldProtocolV1Provider.

◆ closeConnection() [2/2]

template<typename ContextT , typename PayloadDataSupplierT , typename BLEDatabaseT , typename SensorDelegateSetT >
bool herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, BLEDatabaseT, SensorDelegateSetT >::closeConnection ( const TargetIdentifier toTarget)
inlineoverridevirtual

Closes a connection. Returns true if successful or already disconnected

Implements herald::ble::HeraldProtocolV1Provider.

◆ openConnection() [1/2]

template<typename ContextT , typename PayloadDataSupplierT , typename BLEDatabaseT , typename SensorDelegateSetT >
bool herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, BLEDatabaseT, SensorDelegateSetT >::openConnection ( const TargetIdentifier toTarget)
inlineoverridevirtual

Opens a new connection. Returns true if successful or already connected. Will cause scanning and advertising to stop.

Implements herald::ble::HeraldProtocolV1Provider.

◆ openConnection() [2/2]

template<typename ContextT , typename PayloadDataSupplierT , typename BLEDatabaseT , typename SensorDelegateSetT >
bool herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, BLEDatabaseT, SensorDelegateSetT >::openConnection ( const TargetIdentifier toTarget)
inlineoverridevirtual

Opens a new connection. Returns true if successful or already connected. Will cause scanning and advertising to stop.

Implements herald::ble::HeraldProtocolV1Provider.

◆ restartScanningAndAdvertising() [1/2]

template<typename ContextT , typename PayloadDataSupplierT , typename BLEDatabaseT , typename SensorDelegateSetT >
void herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, BLEDatabaseT, SensorDelegateSetT >::restartScanningAndAdvertising ( )
inlineoverridevirtual

Restart scanning and advertising (if they were previously doing so)

Implements herald::ble::HeraldProtocolV1Provider.

◆ restartScanningAndAdvertising() [2/2]

template<typename ContextT , typename PayloadDataSupplierT , typename BLEDatabaseT , typename SensorDelegateSetT >
void herald::ble::ConcreteBLEReceiver< ContextT, PayloadDataSupplierT, BLEDatabaseT, SensorDelegateSetT >::restartScanningAndAdvertising ( )
inlineoverridevirtual

Restart scanning and advertising (if they were previously doing so)

Implements herald::ble::HeraldProtocolV1Provider.


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