Hi,
I am fairly new to programming in general. I have done very basic arduino programming earlier and currently working with esp idf, which has proven to be very complicated for me in terms of chosing which function we should choose. I wanted connect an LED to esp32 and set it so that when it is trying to connect to wifi, I want to led to blink. I donot want to use any fade option. All I need is a basic blink.
Can any one suggest how do I proceed.
Led control with wifi connection
Re: Led control with wifi connection
Since WiFi connection is an asynchronous operation and you get an event callback when it completes, your pseudo code could be something like:
This is less than optimal but it should work.
Code: Select all
Request connection to WiFi;
while(WiFi connection not resolved) {
set Led on;
sleep(500ms);
set Led off;
sleep(500ms);
}
set Led off;
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Who is online
Users browsing this forum: Baidu [Spider], Esp_Noobe_Sag and 88 guests