|
5 | 5 | namespace sensirion::upt::i2c_autodetect{ |
6 | 6 |
|
7 | 7 | Scd30::Scd30(TwoWire& wire, const uint16_t address) : |
8 | | - _wire(wire), _address{address}, _metaData{sensirion::upt::core::SCD30()}{}; |
| 8 | + _wire(wire), _address{address}, _metaData{core::SCD30()}{}; |
9 | 9 |
|
10 | 10 | uint16_t Scd30::start() { |
11 | 11 | _driver.begin(_wire, _address); |
@@ -35,16 +35,16 @@ uint16_t Scd30::measureAndWrite(MeasurementList& measurements, |
35 | 35 | } |
36 | 36 |
|
37 | 37 | measurements.emplace_back(_metaData, |
38 | | - sensirion::upt::core::SignalType::CO2_PARTS_PER_MILLION, |
39 | | - sensirion::upt::core::DataPoint{timeStamp, co2Concentration}); |
| 38 | + core::SignalType::CO2_PARTS_PER_MILLION, |
| 39 | + core::DataPoint{timeStamp, co2Concentration}); |
40 | 40 |
|
41 | 41 | measurements.emplace_back(_metaData, |
42 | | - sensirion::upt::core::SignalType::TEMPERATURE_DEGREES_CELSIUS, |
43 | | - sensirion::upt::core::DataPoint{timeStamp, temperature}); |
| 42 | + core::SignalType::TEMPERATURE_DEGREES_CELSIUS, |
| 43 | + core::DataPoint{timeStamp, temperature}); |
44 | 44 |
|
45 | 45 | measurements.emplace_back(_metaData, |
46 | | - sensirion::upt::core::SignalType::RELATIVE_HUMIDITY_PERCENTAGE, |
47 | | - sensirion::upt::core::DataPoint{timeStamp, humidity}); |
| 46 | + core::SignalType::RELATIVE_HUMIDITY_PERCENTAGE, |
| 47 | + core::DataPoint{timeStamp, humidity}); |
48 | 48 |
|
49 | 49 |
|
50 | 50 | /* Prepare next reading by querying the dataReadyFlag. We don't need the |
@@ -82,12 +82,12 @@ uint16_t Scd30::initializationStep() { |
82 | 82 | return error; |
83 | 83 | } |
84 | 84 |
|
85 | | -sensirion::upt::core::DeviceType Scd30::getDeviceType() const { |
| 85 | +core::DeviceType Scd30::getDeviceType() const { |
86 | 86 | return _metaData.deviceType; |
87 | 87 | ; |
88 | 88 | } |
89 | 89 |
|
90 | | -sensirion::upt::core::MetaData Scd30::getMetaData() const { |
| 90 | +core::MetaData Scd30::getMetaData() const { |
91 | 91 | return _metaData; |
92 | 92 | } |
93 | 93 |
|
|
0 commit comments