42 #ifndef BME280_BAROMETER_HPP 43 #define BME280_BAROMETER_HPP 50 #include "../kallisto_sensor.hpp" 58 static const std::vector<unsigned char> IDENTIFIERS;
60 static const std::vector<std::string> SERVICE_UUIDS;
62 static const std::vector<std::string> CONFIGURATION_CHAR_UUIDS;
64 static const std::vector<std::string> DATA_CHAR_UUIDS;
66 static const unsigned char MANUFACTURER_DATA_TYPE;
68 static const unsigned int BYTES_PER_SAMPLE;
72 static const std::string NAME;
74 static const std::string VENDOR;
76 static const std::string STRING_TYPE;
78 static const float MAX_RANGE;
80 static const float RESOLUTION;
82 static const float POWER;
84 static const std::chrono::microseconds MIN_DELAY;
86 static const std::chrono::microseconds MAX_DELAY;
92 Bme280Barometer(std::string name, std::string address, std::string vendor,
unsigned int version,
SensorType type, std::string string_type,
93 ReportingMode reporting_mode,
unsigned int identifier,
float max_range,
float resolution,
float power, std::chrono::microseconds min_delay,
103 std::vector<unsigned char>
parseConfiguration(
bool enable, std::chrono::microseconds delay);
111 std::vector<SensorEvent>
parseData(
const std::vector<unsigned char>& data);
135 static bool isAvailable(
unsigned int identifier,
const std::map<uint16_t, std::vector<uint8_t> >& manufacturer_data);
155 static std::vector<std::unique_ptr<SensorImpl> >
build(std::string address,
util::Executor& event_dispatcher,
158 const std::map<uint16_t, std::vector<uint8_t> >& manufacturer_data);
164 #endif // BME280_BAROMETER_HPP Definition: kallisto_sensor.hpp:58
Definition: time_synchronizer.hpp:56
Definition: bluetooth_adapter.hpp:52
static bool isAvailable(unsigned int identifier, const std::map< uint16_t, std::vector< uint8_t > > &manufacturer_data)
Definition: bme280_barometer.hpp:54
SensorType
Definition: sensor.hpp:60
Definition: bluetooth_dispatcher.hpp:57
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)
Definition: executor.hpp:71
void operator=(Bme280Barometer const &)=delete
Bme280Barometer(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)
ReportingMode
Definition: sensor.hpp:126