Splitted wifi and mqtt connect states to make the connections more robust. Protect the mqtt connection request against requests when a request is already done or in progress.

Fixed wrong voltage and current measurements due to differences between Arduino and ESP-IDF.

Changed voltage range to 32 volt. Tried INA219 powersave mode, doesn't work.

In the esp-idf-lib the adps9930 driver uses a device descriptor structure instead of just i2c_dev_t. Fixed a linking issue. Added APDS9930 task. Added getLightValues function. Added wifi quality value to the MQTT payload. The payload is complete and will be published.

Added untested port of the Arduino APDS9930 library as component into the esp-idf-lib.

Fixed start of json status message.

Added task_out to drive the relays and led lights. Added NVS namespace to store the state of the outputs. Respond to subscribed MQTT topics to set new output values.

Added namespace and output variables in NVS.

Added volts/current loop calculations. Added millis() timer running on the hardware clock. Completed most of the main state loop. Added MQTT wait for disconnect. MQTT disconnect in two passes, disconnect and stop.

Added the getTempBaro and getVoltsCurrent functions to process the measured data. Added some main task code. Added subscribe to MQTT events.

Added task MQTT and some utilities. Added more power measurement variables and code. INA219 measurements are saved in the State record.

Added Wifi task.

Added begin of INA219 measurements. Added raw main state table.

Finished the BMP280 task.

Added esp-idf-lib for a lot of sensors. Added the basic design for the BMP280 task.

(0) +15 tip

mercurial