ESP32 and wifi

Nemanja82
Posts: 3
Joined: Wed Dec 08, 2021 4:50 pm

ESP32 and wifi

Postby Nemanja82 » Wed Dec 08, 2021 5:38 pm

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.

ESP_Sprite
Posts: 8926
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 and wifi

Postby ESP_Sprite » Thu Dec 09, 2021 1:48 am

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.

Nemanja82
Posts: 3
Joined: Wed Dec 08, 2021 4:50 pm

Re: ESP32 and wifi

Postby Nemanja82 » Thu Dec 09, 2021 8:17 pm

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.

ESP_Sprite
Posts: 8926
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 and wifi

Postby ESP_Sprite » Fri Dec 10, 2021 7:13 am

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.

Nemanja82
Posts: 3
Joined: Wed Dec 08, 2021 4:50 pm

Re: ESP32 and wifi

Postby Nemanja82 » Fri Dec 10, 2021 12:25 pm

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

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 147 guests