|
Kallisto Linux API
Library for interacting with Kallisto devices
|


Public Member Functions | |
| ~Bme280RelativeHumiditySensor () | |
| Bme280RelativeHumiditySensor (Bme280RelativeHumiditySensor const &)=delete | |
| void | operator= (Bme280RelativeHumiditySensor const &)=delete |
Public Member Functions inherited from KallistoSensor | |
| virtual | ~KallistoSensor () |
| KallistoSensor (KallistoSensor const &)=delete | |
| void | operator= (KallistoSensor const &)=delete |
Public Member Functions inherited from SensorImpl | |
| virtual | ~SensorImpl () |
| SensorImpl (SensorImpl const &)=delete | |
| SensorImpl (SensorImpl &&)=delete | |
| void | operator= (SensorImpl const &)=delete |
| void | operator= (SensorImpl &&)=delete |
| error::KallistoDetailedResult | registerListener (std::map< std::string, const void *> parameters, SensorEventListener &listener) |
| error::KallistoDetailedResult | unregisterListener (SensorEventListener &listener) |
| bool | getEnabled () |
| void | onLinkLoss () |
| error::KallistoDetailedResult | onLinkRecovered () |
Public Member Functions inherited from Sensor | |
| unsigned int | getHandle () const |
| std::string | getName () const |
| std::string | getAddress () const |
| std::string | getVendor () const |
| unsigned int | getVersion () const |
| SensorType | getType () const |
| std::string | getStringType () const |
| ReportingMode | getReportingMode () const |
| unsigned int | getIdentifier () const |
| float | getMaximumRange () const |
| float | getResolution () const |
| float | getPower () const |
| std::chrono::microseconds | getMinDelay () const |
| std::chrono::microseconds | getMaxDelay () const |
| std::string | toString () |
| bool | operator== (const Sensor &other) const |
| bool | operator!= (const Sensor &other) const |
Static Public Member Functions | |
| static bool | isAvailable (unsigned int identifier, const std::map< uint16_t, std::vector< uint8_t > > &manufacturer_data) |
| static bool | isAvailable (unsigned int identifier, bluetooth::BluetoothDispatcher &bluetooth_dispatcher) |
| static std::vector< std::unique_ptr< SensorImpl > > | build (std::string address, util::Executor &event_dispatcher, bluetooth::BluetoothDispatcher &bluetooth_dispatcher, TimeSynchronizer &sensor_synchronizer, const std::map< uint16_t, std::vector< uint8_t > > &manufacturer_data) |
Static Public Member Functions inherited from SensorImpl | |
| static unsigned int | generateHandle () |
| static const std::string & | KEY_DELAY () |
| static unsigned char | getTypeFromManufacturerData (unsigned char byte) |
| static unsigned char | getIdFromManufacturerData (unsigned char byte) |
Static Public Member Functions inherited from Sensor | |
| static unsigned int | getValueArraySize (SensorType type) |
Protected Member Functions | |
| Bme280RelativeHumiditySensor (std::string name, std::string address, std::string vendor, unsigned int version, SensorType type, std::string string_type, ReportingMode reporting_mode, unsigned int identifier, float max_range, float resolution, float power, std::chrono::microseconds min_delay, std::chrono::microseconds max_delay, util::Executor &event_dispatcher, bluetooth::BluetoothDispatcher &bluetooth_dispatcher, TimeSynchronizer *sensor_synchronizer) | |
| std::vector< unsigned char > | parseConfiguration (bool enable, std::chrono::microseconds delay) |
| std::vector< SensorEvent > | parseData (const std::vector< unsigned char > &data) |
Protected Member Functions inherited from KallistoSensor | |
| KallistoSensor (std::string name, std::string address, std::string vendor, unsigned int version, SensorType type, std::string string_type, ReportingMode reporting_mode, unsigned int identifier, float max_range, float resolution, float power, std::chrono::microseconds min_delay, std::chrono::microseconds max_delay, util::Executor &event_dispatcher, bluetooth::BluetoothDispatcher &bluetooth_dispatcher, TimeSynchronizer *sensor_synchronizer, std::string service_uuid, std::string configuration_char_uuid, std::string data_char_uuid) | |
| error::KallistoDetailedResult | start (std::map< std::string, const void *> parameters, InternalSensorEventListener internal_listener) |
| error::KallistoDetailedResult | update (std::map< std::string, const void *> parameters) |
| std::map< std::string, const void * > | getParameters () |
| error::KallistoDetailedResult | stop (bool link_loss) |
| void | onNotification (std::string address, std::string service_uuid, std::string characteristic_uuid, const std::vector< unsigned char > &values) |
Protected Member Functions inherited from SensorImpl | |
| SensorImpl (std::string name, std::string address, std::string vendor, unsigned int version, SensorType type, std::string string_type, ReportingMode reporting_mode, unsigned int identifier, float max_range, float resolution, float power, std::chrono::microseconds min_delay, std::chrono::microseconds max_delay, util::Executor &event_dispatcher, bluetooth::BluetoothDispatcher &bluetooth_dispatcher, TimeSynchronizer *sensor_synchronizer) | |
Protected Member Functions inherited from Sensor | |
| Sensor (unsigned int handle, std::string name, std::string address, std::string vendor, unsigned int version, SensorType type, std::string string_type, ReportingMode reporting_mode, unsigned int identifier, float max_range, float resolution, float power, std::chrono::microseconds min_delay, std::chrono::microseconds max_delay) | |
| virtual | ~Sensor () |
| Sensor (Sensor const &)=delete | |
| Sensor (Sensor &&)=delete | |
| void | operator= (Sensor const &)=delete |
| void | operator= (Sensor &&)=delete |
Protected Member Functions inherited from BluetoothDispatcher::NotificationListener | |
| NotificationListener () | |
| virtual | ~NotificationListener () |
| NotificationListener (NotificationListener const &)=delete | |
| NotificationListener (NotificationListener &&)=delete | |
| void | operator= (NotificationListener const &)=delete |
| void | operator= (NotificationListener &&)=delete |
|
protected |
Constructor.
Destructor.
|
delete |
Remove copy.
|
static |
Builds the instances of the BME280 Relative Humidity sensor that exist in the device.
| address | The MAC address of the device under discovery. |
| event_dispatcher | Sensor event dispatcher. |
| bluetooth_dispatcher | BLE operations dispatcher. |
| manufacturer_data | The advertised manufacturer data of the device. Each key represents an company ID and each value is a byte array of the service data. |
|
static |
Checks if the Relative Humidity sensor is available using the manufacturer data.
| identifier | Instance of the relative humidity sensor. |
| manufacturer_data | The advertised manufacturer data of the device. Each key represents an company ID and each value is a byte array of the service data. |
|
static |
Checks if the Relative Humidity sensor is available using characteristic data. Note: If legacy discovery is not enabled, the service list will be empty so no device will be discovered.
| identifier | Instance of the relative humidity sensor. |
| bluetooth_dispatcher | BLE operations dispatcher. |
|
delete |
Remove attribution.
|
protectedvirtual |
Parses the passed delay into configuration to be sent to the device configuration characteristic.
| enable | If the sensor should be enabled or not. |
| delay | The desired delay, in microseconds. |
Implements KallistoSensor.
|
protectedvirtual |
Parses the received raw data into sensor events.
| data | The received raw data. |
Implements KallistoSensor.