Page 1 of 1

ESP32 and wifi

Posted: Wed Dec 08, 2021 5:38 pm
by Nemanja82
Hi all, I am new here, but not new in microcontrolers and PLC world.
I have few project for my hime made with ESP32, but i have some problem with wifi
I have one quetions for expirianced ESP32 devolopers.
Is it possible make ESP32 to continue work even if he disconnected from wifi?
When ESPs disconnect or lose wifi they are trying to reconnect, and it lasts until they connected. Is there a way to try a couple of times to connwct to wifi, if they don't connect to keep going and run her code, and periodically try to connect. I'm asking this because I don't like a process to stand because of wifi.
Thanks a lot in adition.

Re: ESP32 and wifi

Posted: Thu Dec 09, 2021 1:48 am
by ESP_Sprite
Yeah, of course, that's more or less the default way it works, dependent on which SDK you use. Would be a bit stupid if e.g. a WiFi-connected fridge would stop working simply because the WiFi went away.

Re: ESP32 and wifi

Posted: Thu Dec 09, 2021 8:17 pm
by Nemanja82
Thanks for the answer, you are right. so I assumed but do you have some code example or some page where I can finde some examples.

Re: ESP32 and wifi

Posted: Fri Dec 10, 2021 7:13 am
by ESP_Sprite
Again, it depends on the SDK you are using. Might help to look throught he SDK documentation as well, most of them have example code or sketches.

Re: ESP32 and wifi

Posted: Fri Dec 10, 2021 12:25 pm
by Nemanja82
I am using ESP32-WROOM-32U board, programming with VSC and Platformio and for Wifi I using wifi.h library.
Ok, I will try to find some examples and test with my board.
Thanks for help