Code changes to try to fix the not working ADPS9930 driver.

First pass of debugging APDS9930 with a real chip.

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.

(0) -10 -7 +7 +10 tip

mercurial