◆ SensorFactory()
◆ ~SensorFactory()
◆ build()
Builds a sensor list containing all sensors found within the passed device by the registered providers.
- Parameters
-
kallisto | The device under discovery. |
service_data | The advertised service data of the device. Each key represent an UUID and each value is a byte array of the service data. Will be empty if there was no data. |
manufacturer_data | The advertised manufacturer data of the device. Will be empty if there was no data. |
event_dispatcher | Interface for the sensors to send events. The sensor should run the callbacks using this executor. |
bluetooth_dispatcher | Interface to perform BLE operations. Should be saved to allow interaction with the remote device. |
sensor_synchonizer | Interface to sync the sensor events timestamps. |
- Returns
- A list of sensors available in the device
◆ registerProvider()
Registers a new provider in the factory.
- Parameters
-
provider | The new sensor provider. |
- Returns
- A detailed result.
◆ unregisterProvider()
Unregisters a previously registered provider.
- Parameters
-
provider | The sensor provider to be removed. |
- Returns
- A detailed result.
The documentation for this class was generated from the following file:
- /home/joao.oliveira/Workspace/local/repo/documentation/sphinx/source/components/kallistolinuxapi/include/hardware/hal/sensors/sensor_factory.hpp