Change and Store Wi-Fi networks parameters on Arduino Nano Esp32

Hello,

I have my Arduino Nano esp32 enclosed in a small plastic box, exchanging data with my smartphone thanks to an Android app that I developed with Android Studio and Firebase.
I hardcoded the Wi-Fi network parameters into my Arduino code and so I have no problems communicating with it when I'm at home.

The problem is that I usually move the system and I need to change the network parameters different times. Is there a way to implement some kind of "setup mode" where Arduino receives the network parameters from my APP and then stores them permanently into the esp32?
What kind of solution should I use?

I think the best thing to do would be to use Bluetooth to connect to the Arduino esp32 in order to store the Wi-Fi data for the first time and then switch to Wi-Fi.
But, how can I implement this?

If you use the WifFiManager library, that functionality is built in. A captive portal to enter parameters when it can not connect.

1 Like

WiFiManager is what I use.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.