MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / setOutputFields

Method setOutputFields

libraries/Cozir/cozir.cpp:210–215  ·  view source on GitHub ↗

/////////////////////////////////////////////////////// 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

Source from the content-addressed store, hash-verified

208// - parse buffer [field space value]
209//
210void COZIR::setOutputFields(uint16_t fields)
211{
212 _outputFields = fields;
213 sprintf(_buffer, "M %u", fields);
214 _command(_buffer);
215}
216
217
218bool COZIR::inOutputFields(uint16_t field)

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64