7 #ifndef rhusbMonParsers_hpp
8 #define rhusbMonParsers_hpp
27 const std::string & str
30 size_t st = str.find(
" C\r\n>");
31 if(st == std::string::npos)
43 if(!isdigit(str[0]) && str[0] !=
'-')
49 temp = std::stof( str.substr(0, st) );
62 const std::string & str
65 size_t st = str.find(
" %RH\r\n>");
66 if(st == std::string::npos)
84 humid = std::stof( str.substr(0, st) );
int parseH(float &humid, const std::string &str)
Parse the RH probe H humidity command.
int parseC(float &temp, const std::string &str)
Parse the RH probe C temp command.