Go Down

Topic: Store Wi-Fi network details - Arduino and ESP8266 (Read 209 times) previous topic - next topic

marcusbarnet

Hi to all,

I would like to make my Arduino UNO + ESP8266 connect to different Wi-Fi networks without having to upload new code everytime.

At the moment, the Wi-Fi ssid and password are hard coded into the code and I need to change them everytime I want to connect to a different Wi-Fi network.

Is it possible to configure the ESP8266 to receive the new Wi-Fi data from a web page?
Should I use a sdcard to store the details in a TXT file and then read them from Arduino?

Thank you!

marcusbarnet

Thank you for your answer.

Is there any tutorial I can read to understand how to implement this?

Moreover, how can I write data to the eeprom? from a web page?

Juraj

Thank you for your answer.

Is there any tutorial I can read to understand how to implement this?

Moreover, how can I write data to the eeprom? from a web page?
how do you use the esp8266 with Uno? two sketches? AT firmware? other firmware?

marcusbarnet

how do you use the esp8266 with Uno? two sketches? AT firmware? other firmware?
With SoftwareSerial and AT commands.

Juraj

and what do you want to achieve?
you take the arduino to some location and want to connect it to a local WiFi network?
start SoftAP on esp8266. there are AT commands for it. see the reference.
and then you can serve a page with a form and process the form submit with the credentials.
then you call AT+CWJAP_DEF and the esp8266 remembers it and will connect to that AP after every restart.
then you code a test if it is connected and if not, you again start the softAP with the configuration web page

Go Up