r-map / rmap

rete monitoraggio ambientale partecipativo documentation at https://doc.rmap.cc
https://rmap.cc
52 stars 43 forks source link

firmware: in i2c-th set driver and type in configuration saved on EEPROM #395

Closed pat1 closed 8 months ago

pat1 commented 2 years ago

in function init_sensors the driver and type of sensor is defined at compile time and i2c address in configuration and eeprom. Will be better put SENSOR_DRIVER_I2C and SENSOR_TYPE in configuration saved on EEPROM

SensorDriver::createAndSetup(configuration.temperature_sensor_driver, configuration.sensor_temperature_type, configuration.i2c_temperature_address, 1, sensors, &sensors_count)