42 #ifndef RSSI_SENSOR_HPP 43 #define RSSI_SENSOR_HPP 51 #include "../sensor_impl.hpp" 60 static const std::string NAME;
62 static const std::string VENDOR;
64 static const std::string STRING_TYPE;
66 static const float MAX_RANGE;
68 static const float RESOLUTION;
70 static const float POWER;
72 static const std::chrono::microseconds MIN_DELAY;
74 static const std::chrono::microseconds MAX_DELAY;
77 std::chrono::microseconds m_delay = std::chrono::microseconds(0);
81 std::thread m_rssi_thread;
83 std::mutex m_rssi_mtx;
85 std::condition_variable m_rssi_cv;
91 RssiSensor(std::string name, std::string address, std::string vendor,
unsigned int version,
SensorType type, std::string string_type,
92 ReportingMode reporting_mode,
unsigned int identifier,
float max_range,
float resolution,
float power, std::chrono::microseconds min_delay,
161 static std::vector<std::unique_ptr<SensorImpl> >
build(std::string address,
util::Executor& event_dispatcher,
163 const std::map<uint16_t, std::vector<uint8_t> >& manufacturer_data);
169 #endif // BATTERY_SOC_HPP
Definition: bluetooth_adapter.hpp:52
Class that encapsulates a result.
Definition: kallisto_error.hpp:81
SensorType
Definition: sensor.hpp:60
Definition: bluetooth_dispatcher.hpp:57
Definition: executor.hpp:71
std::function< void(SensorEvent &event)> InternalSensorEventListener
Definition: sensor_impl.hpp:65
Definition: sensor_impl.hpp:70
ReportingMode
Definition: sensor.hpp:126