kike-canaries / canairio_sensorlib

Particle sensor manager for multiple sensors: Honeywell, Plantower, Panasonic, Sensirion, etc. This is sensors layer of CanAirIO project too.
https://canair.io/docs/sensorlib.html
GNU General Public License v3.0
37 stars 12 forks source link

Add internal temperature offset initialization and retrieval methods #205

Closed melkati closed 6 months ago

melkati commented 6 months ago

Description

The programmer using the library must set the float variable sensors.toffset, prior to sensors.init(), to the same temperature offset the program using the library has stored as "actual offset temperature" for everything to be "on sync".

This implements methods to set and retrieve this variable. This must be called before calling sensors.init().

Related Issues

203

Tests

Tested on CO2 Gadget without detecting any issues.