132 REPORTING_MODE_CONTINUOUS = 0,
137 REPORTING_MODE_ON_CHANGE = 1,
142 REPORTING_MODE_ONE_SHOT = 2,
147 REPORTING_MODE_SPECIAL_TRIGGER = 3
183 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,
184 unsigned int identifier,
float max_range,
float resolution,
float power, std::chrono::microseconds min_delay, std::chrono::microseconds max_delay);
196 void operator=(
Sensor const&) =
delete;
197 void operator=(
Sensor &&) =
delete;
279 bool operator== (
const Sensor &other)
const;
280 bool operator!= (
const Sensor &other)
const;
const SensorType m_type
Definition: sensor.hpp:161
ReportingMode getReportingMode() const
const std::chrono::microseconds m_max_delay
Definition: sensor.hpp:177
const float m_resolution
Definition: sensor.hpp:171
float getResolution() const
std::string getAddress() const
Definition: bluetooth_adapter.hpp:52
std::string getVendor() const
unsigned int getIdentifier() const
const unsigned int m_handle
Definition: sensor.hpp:151
SensorType
Definition: sensor.hpp:60
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)
static unsigned int getValueArraySize(SensorType type)
std::chrono::microseconds getMinDelay() const
std::string getStringType() const
unsigned int getVersion() const
const std::chrono::microseconds m_min_delay
Definition: sensor.hpp:175
const ReportingMode m_reporting_mode
Definition: sensor.hpp:165
const unsigned int m_version
Definition: sensor.hpp:159
const std::string m_name
Definition: sensor.hpp:153
SensorType getType() const
const float m_power
Definition: sensor.hpp:173
unsigned int getHandle() const
const float m_max_range
Definition: sensor.hpp:169
std::chrono::microseconds getMaxDelay() const
const std::string m_string_type
Definition: sensor.hpp:163
const std::string m_address
Definition: sensor.hpp:155
const std::string m_vendor
Definition: sensor.hpp:157
float getMaximumRange() const
const unsigned int m_identifier
Definition: sensor.hpp:167
std::string getName() const
ReportingMode
Definition: sensor.hpp:126