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

Method celsius

libraries/Cozir/cozir.cpp:96–100  ·  view source on GitHub ↗

/////////////////////////////////////////////////////// POLLING MODE you need to set the polling mode explicitly before using these functions. SetOperatingMode(CZR_POLLING); this is the default behaviour of this Class but not of the sensor!!

Source from the content-addressed store, hash-verified

94// not of the sensor!!
95//
96float COZIR::celsius()
97{
98 uint16_t rv = _request("T");
99 return 0.1 * (rv - 1000.0);
100}
101
102
103float COZIR::humidity()

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64