armageddon421 / electrodacus-esp32

20 stars 6 forks source link

Implement modem sleep mode #5

Open armageddon421 opened 4 years ago

armageddon421 commented 4 years ago

Reduce WiFi Power consumption by using the modem sleep mode. The connection stays established as the modem wakes up regularly just in time for the DTIM broadcast of the Router.

Switch to full power mode if there is user interaction via html.

armageddon421 commented 4 years ago

esp_wifi_set_ps(WIFI_PS_MODEM); or WIFI_PS_MIN_MODEM