Hello,
I'm working on a project using a ESP32-PICO-D4 with ESP-IDF 4.3.
I have a temperature sensor attached near the ESP32.
The application is working as intended, connects to the wifi network and operates without issue.
I want to the ESP32 to disconnect and reconnect to the WiFi network, so I call:
esp_wifi_disconnect();
which results in a disconnect.
My WiFi event handler will then pick up the disconnect event, and reconnect to the network.
This works correctly, and the device reconnects to the network.
The problem is, the device will run much hotter from this point forward until the device is restarted.
I have tried stopping the WiFi driver and restarting it:
esp_wifi_stop();
esp_wifi_start();
But the issue still occurs.
Why would this cause the device to run at a higher temperature? What can I do to avoid this?
Additionally,
If instead of calling esp_wifi_disconnect();, I instead use esp_wifi_connect(); even while it is still connected, the temperature will begin increasing.
Restarting WiFi causing increased temperature
-
- Posts: 3
- Joined: Fri Sep 11, 2020 5:28 pm
Re: Restarting WiFi causing increased temperature
Do you use power management? Dynamic frequency, light sleep, etc.?
The SoftAP is off?
Or maybe it is a problem with modem sleep: esp_wifi_set_ps and esp_wifi_get_ps are some keywords.
The SoftAP is off?
Or maybe it is a problem with modem sleep: esp_wifi_set_ps and esp_wifi_get_ps are some keywords.
ESP32 / ESP-IDF 5.1.4
-
- Posts: 3
- Joined: Fri Sep 11, 2020 5:28 pm
Re: Restarting WiFi causing increased temperature
It turned out to be a bug in my application code.
Calling "esp_wifi_connect();" while already connected to a network was causing the issue.
Calling "esp_wifi_connect();" while already connected to a network was causing the issue.
Who is online
Users browsing this forum: Baidu [Spider], Bing [Bot], Majestic-12 [Bot] and 81 guests