/////////////////////////////////////////////////////// STREAMING MODE output fields should be OR-ed e.g. SetOutputFields(CZR_HUMIDITY | CZR_RAWTEMP | CZR_RAWCO2); you need to set the STREAMING mode explicitly SetOperatingMode(CZR_STREAMING); in STREAMING mode you must parse the output of serial yourself. stream looks like [space field space value]* \n - find separator ('\n') - read until ne
| 208 | // - parse buffer [field space value] |
| 209 | // |
| 210 | void COZIR::setOutputFields(uint16_t fields) |
| 211 | { |
| 212 | _outputFields = fields; |
| 213 | sprintf(_buffer, "M %u", fields); |
| 214 | _command(_buffer); |
| 215 | } |
| 216 | |
| 217 | |
| 218 | bool COZIR::inOutputFields(uint16_t field) |