Wed, 12 Apr 2023 16:23:02 +0200 Michiel Broek Reduced I2C master speed from 400 to 100 Khz. Hope to get power-on init for BMP280 more reliable. Added warnings for I2C devices that are missing. Some logmessages reduced to debug log messages. Added extra 10 mSec delays before read shunt voltage in the INA219 task. Removed and reduced log levels in the MQTT task. Show received data events. Remove WiFi total time debug logging, it's ok now. file | diff | annotate
Tue, 11 Apr 2023 19:41:53 +0200 Michiel Broek Shorter delays during wifi connect timeout. Some code cleanup in the main state table. Report WiFi TX power during init. Removed SSID from WIFI_State because it wasn't used. file | diff | annotate
Tue, 11 Apr 2023 11:11:13 +0200 Michiel Broek Decreased WiFi transmit level to 13. Level 15 is unstable, skip 14 just to be sure. It seems to be the bad designed antenna circuit on the ESP32-C3 Lolin v2.1.0 board. The board also benefits from a ground plane connected to the shield of the USB connector. The final implementation needs an external antenna anyway so the onboard antenna will go away. In the meanwhile, the wifi task is now more robust. Also, in testing mode there is no battery alarm, only when building for production. file | diff | annotate
Thu, 06 Apr 2023 20:49:52 +0200 Michiel Broek Added nvsio utilities to make read/write to nvs namespace easier. Added variables for deep sleep to nvs namespace. In task_wifi, removed some init parameters that might add to instable wifi connect problems. file | diff | annotate
Tue, 04 Apr 2023 20:57:49 +0200 Michiel Broek 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. file | diff | annotate
Sat, 01 Apr 2023 21:06:59 +0200 Michiel Broek 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. file | diff | annotate
Fri, 31 Mar 2023 21:12:39 +0200 Michiel Broek Added namespace and output variables in NVS. file | diff | annotate
Fri, 31 Mar 2023 20:31:12 +0200 Michiel Broek 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. file | diff | annotate
Thu, 30 Mar 2023 21:55:24 +0200 Michiel Broek Added the getTempBaro and getVoltsCurrent functions to process the measured data. Added some main task code. Added subscribe to MQTT events. file | diff | annotate
Thu, 30 Mar 2023 17:05:05 +0200 Michiel Broek Added task MQTT and some utilities. Added more power measurement variables and code. INA219 measurements are saved in the State record. file | diff | annotate
Wed, 29 Mar 2023 21:39:07 +0200 Michiel Broek Added Wifi task. file | diff | annotate
(0) tip

mercurial