A simple test project to figure out the most efficient mode to stay connected to WiFi while going to light sleep as much as possible.
Create an sdkconfig.local.defaults
with:
CONFIG_ESP_WIFI_SSID="..."
CONFIG_ESP_WIFI_PASSWORD="..."
CONFIG_ESP_MQTT_BROKER_URI="mqtt://..."
Then run:
idf.py build flash monitor