Page 1 of 1
Turn OFF WiFi on ESP32 with esp-idf
Posted: Wed Jan 12, 2022 4:29 pm
by Die_32_
Hi,
is it possible to turn OFF the WiFi Radio on ESP32 and esp-idf ?
Cannot find the related API
Re: Turn OFF WiFi on ESP32 with esp-idf
Posted: Wed Jan 12, 2022 6:36 pm
by mzimmers
Applications start up without automatically starting WiFi. If you don't want it, just don't start it.
Re: Turn OFF WiFi on ESP32 with esp-idf
Posted: Thu Jan 13, 2022 9:40 am
by Die_32_
Sorry, I did not understand.
Is the a function to call in order to stop the WiFi ?
Re: Turn OFF WiFi on ESP32 with esp-idf
Posted: Fri Jan 14, 2022 4:21 am
by ESP_User1563
Both of the following are used to start and stop the wifi in ESP examples. Look for the start in your code somewhere that is starting it and comment it out or use the stop command when you want to stop it.
esp_err_t results = esp_wifi_start();
esp_err_t results = esp_wifi_stop();
Re: Turn OFF WiFi on ESP32 with esp-idf
Posted: Tue Jan 18, 2022 11:10 am
by Die_32_
esp_err_t results = esp_wifi_stop();
This worked correctly, thanks!