Kallisto Linux API
Library for interacting with Kallisto devices
KallistoFactory Class Reference

Public Member Functions

 KallistoFactory (SensorFactory &sensor_factory)
 
 ~KallistoFactory ()
 
std::unique_ptr< KallistoImplbuild (kallisto::bluetooth::BluetoothDevice &bluetooth_device, const bluetooth::BluetoothAdapter::ScanListener::ScanRecord &record, bool legacy_discovery, util::Executor &event_dispatcher)
 

Constructor & Destructor Documentation

◆ KallistoFactory()

KallistoFactory ( SensorFactory sensor_factory)
inline

Constructor.

Parameters
sensor_factoryThe sensor factory.

◆ ~KallistoFactory()

~KallistoFactory ( )
inline

Destructor.

Member Function Documentation

◆ build()

std::unique_ptr<KallistoImpl> build ( kallisto::bluetooth::BluetoothDevice bluetooth_device,
const bluetooth::BluetoothAdapter::ScanListener::ScanRecord record,
bool  legacy_discovery,
util::Executor event_dispatcher 
)
inline

Builds an Kallisto device using the passed data. Note: The instance can be null if something went wrong during the device creation.

Parameters
bluetooth_deviceThe Bluetooth device.
recordThe scan data record.
legacy_discoveryTrue if the device should connect for discovery.
event_dispatcherInterface for the sensors to send events. The device should run the callbacks using this executor.
Returns
An Kallisto instance.
Here is the call graph for this function:

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