• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

walking between access points (same SSID and password) stops esp32 while running

Q&A Forum › Category: ESP32 › walking between access points (same SSID and password) stops esp32 while running
0 Vote Up Vote Down
Fabian asked 4 years ago

Hello, 

everything works fine while being connected with one access point but as soon as it is out of range the esp32 stops and needs to reset.
I used [Basecamp] (https://github.com/ct-Open-Source/Basecamp)
which includes
[ESPAsyncWebServer] (https://github.com/me-no-dev/ESPAsyncWebServer)
[ArduinoJSON] (https://github.com/bblanchon/ArduinoJson)
[Async MQTT Client] (https://github.com/marvinroger/async-mqtt-client)
[AsyncTCP] (https://github.com/me-no-dev/AsyncTCP)

I can go into detail with the code but I’d like to know first if someone also encountered this. 

Thanks and have a nice day !

Question Tags: Wlan Access Points ESP32
2 Answers
0 Vote Up Vote Down
Steve Mercer answered 4 years ago

You have to handle this yourself. Check out this article for useful WIFI functions. In your loop you would check if the WIFI has disconnected. Then try to reconnect. For different SSID/passwords you can use the “WIFI Scan” example (Should have been installed when you installed the ESP32) to find all the local networks available. If there is one you know try to connect with saved SSID/passwords (Perhaps use the Preferences library to save these).
 
Note that the iPhone had this issue a while back that it would not switch between routers automatically even with the same SSID/password. It took Apple over six months to bring out a fix. Hopefully yours will be easier.

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
As Steve suggested, you need to handle that yourself. Besides the tutorials mentioned, this might also help:

  • https://randomnerdtutorials.com/solved-reconnect-esp32-to-wifi/

Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.