ESP32 Wi-Fi ON/OFF Issue
Posted: Tue Apr 26, 2022 6:18 am
Hi Team,
Greetings of the day !
Presently am working on ESP32 module, am using Wi-Fi interface in my application, my application should run in low power mode to consume less current so for that purpose am keeping my Wi-Fi in modem sleep mode and am using Wi-Fi interface mainly to connect to HTTP (webpage) from mobile through Static IP generated from my application code, where the problem comes is ...
a) When am turning of Wi-Fi connection in mobile directly, my application control hangs (Code structs at some point), observed LED indication suddenly stops when I turn off my mobile Wi-Fi directly, I Simulated this condition for many times observed the same issue
what could be the problem and how to overcome this issue ?
b) Is there any Solution/function to handle in software ? suggest me good idea to come out of these issue ?
c) Is this function useful ?
esp_err_tesp_wifi_set_inactive_time(wifi_interface_tifx, uint16_t sec).
d) How can I call this function from Arduino IDE ?
Greetings of the day !
Presently am working on ESP32 module, am using Wi-Fi interface in my application, my application should run in low power mode to consume less current so for that purpose am keeping my Wi-Fi in modem sleep mode and am using Wi-Fi interface mainly to connect to HTTP (webpage) from mobile through Static IP generated from my application code, where the problem comes is ...
a) When am turning of Wi-Fi connection in mobile directly, my application control hangs (Code structs at some point), observed LED indication suddenly stops when I turn off my mobile Wi-Fi directly, I Simulated this condition for many times observed the same issue
what could be the problem and how to overcome this issue ?
b) Is there any Solution/function to handle in software ? suggest me good idea to come out of these issue ?
c) Is this function useful ?
esp_err_tesp_wifi_set_inactive_time(wifi_interface_tifx, uint16_t sec).
d) How can I call this function from Arduino IDE ?