Built in LED blinks when using WiFi.h
Posted: Tue Aug 06, 2024 9:42 am
I have a generic ESP32-WROOM-32D dev board that I'm using to learn ESP32 programming using the Arduino IDE. I've noticed that when I use the WiFi object from WiFi.h the built in LED illuminates to show the state of the connection. When I call WiFi.begin() the LED turns on solid, then once the WiFi connects to my access point the LED starts flashing rapidly.
I just assumed this was a "feature", but then I tried using the Espressif ESP-IDF with VSCode instead of the Arduino IDE, and when I use the WiFi example provided the built in LED does not illuminate. So there must be something in the Arduino WiFi object code that is controlling the LED.
My question is can I change some setting in the WiFi object to determine whether or not the built in LED is used to show the status of the connection? I have tried Googling this but with no luck.
I did find the question ESP32 WiFi.h Constantly Blinking Onboard LED on this site:
https://esp32.com/viewtopic.php?f=2&t=3 ... 1f0021f454
but the question has no solution. As a last resort if anyone can point me to the code for the WiFi object I can go through it to look for anything that is changing the built in LED.
If it's relevant I can post the code I'm using in the Aduino and ESP-IDF but I don't think it's useful as it's just the template code provided with the dev environments.
I just assumed this was a "feature", but then I tried using the Espressif ESP-IDF with VSCode instead of the Arduino IDE, and when I use the WiFi example provided the built in LED does not illuminate. So there must be something in the Arduino WiFi object code that is controlling the LED.
My question is can I change some setting in the WiFi object to determine whether or not the built in LED is used to show the status of the connection? I have tried Googling this but with no luck.
I did find the question ESP32 WiFi.h Constantly Blinking Onboard LED on this site:
https://esp32.com/viewtopic.php?f=2&t=3 ... 1f0021f454
but the question has no solution. As a last resort if anyone can point me to the code for the WiFi object I can go through it to look for anything that is changing the built in LED.
If it's relevant I can post the code I'm using in the Aduino and ESP-IDF but I don't think it's useful as it's just the template code provided with the dev environments.