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:296
void update()
Definition: t3311.cxx:214
float getMixingRatio()
Definition: t3311.cxx:291
std::string getSerialNumber()
Definition: t3311.h:243
bool extendedDataAvailable()
Definition: t3311.h:130
float getDewPointTemperature(bool fahrenheit=false)
Definition: t3311.cxx:273
float getAbsoluteHumidity()
Definition: t3311.cxx:281
~T3311()
Definition: t3311.cxx:179
void setDebug(bool enable)
Definition: t3311.cxx:301
float getComputedValue()
Definition: t3311.cxx:268
int getFirmwareMajor()
Definition: t3311.h:253
UPM API for the T3311 MODBUS Temperature and Humidity Sensor. 
Definition: t3311.h:63
float getHumidity()
Definition: t3311.cxx:263
float getSpecificHumidity()
Definition: t3311.cxx:286
int getFirmwareMinor()
Definition: t3311.h:263
T3311(std::string device, int address, int baud=9600, int bits=8, char parity='N', int stopBits=2)
Definition: t3311.cxx:55
float getTemperature(bool fahrenheit=false)
Definition: t3311.cxx:255