28 #include <modbus/modbus.h> 68 REG_TEMPERATURE = 0x0030,
69 REG_HUMIDITY = 0x0031,
74 REG_COMPUTED = 0x0032,
77 REG_DEW_POINT = 0x0034,
78 REG_ABS_HUMIDITY = 0x0035,
79 REG_SPECIFIC_HUMIDITY = 0x0036,
80 REG_MIXING_RATIO = 0x0037,
81 REG_SPECIFIC_ENTHALPY = 0x0038,
86 REG_SERIAL_HI = 0x1034,
87 REG_SERIAL_LO = 0x1035,
95 REG_UNIT_SETTINGS = 0x203F,
115 T3311(std::string device,
int address,
int baud=9600,
int bits=8,
116 char parity=
'N',
int stopBits=2);
132 return m_isExtendedDataAvailable;
245 return m_serialNumber;
277 uint16_t readInputReg(
int reg);
278 int readInputRegs(
int reg,
int len, uint16_t *buf);
281 modbus_t *m_mbContext;
287 bool m_isExtendedDataAvailable;
292 std::string m_serialNumber;
300 float m_computedValue;
304 float m_dewPointTemperature;
305 float m_absoluteHumidity;
306 float m_specificHumidity;
308 float m_specificEnthalpy;
float getSpecificEnthalpy()
Definition: t3311.cxx:295
void update()
Definition: t3311.cxx:213
float getMixingRatio()
Definition: t3311.cxx:290
std::string getSerialNumber()
Definition: t3311.hpp:243
bool extendedDataAvailable()
Definition: t3311.hpp:130
float getDewPointTemperature(bool fahrenheit=false)
Definition: t3311.cxx:272
float getAbsoluteHumidity()
Definition: t3311.cxx:280
~T3311()
Definition: t3311.cxx:178
void setDebug(bool enable)
Definition: t3311.cxx:300
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
float getComputedValue()
Definition: t3311.cxx:267
int getFirmwareMajor()
Definition: t3311.hpp:253
UPM API for the T3311 MODBUS Temperature and Humidity Sensor.
Definition: t3311.hpp:63
float getHumidity()
Definition: t3311.cxx:262
float getSpecificHumidity()
Definition: t3311.cxx:285
int getFirmwareMinor()
Definition: t3311.hpp:263
T3311(std::string device, int address, int baud=9600, int bits=8, char parity='N', int stopBits=2)
Definition: t3311.cxx:54
float getTemperature(bool fahrenheit=false)
Definition: t3311.cxx:254