0

I am working on a project for a friend who is not very tech savvy involving an ESP8266. It will need to be connected to his WiFi network.

The issue is that he occasionally changed the password to his WiFi network. Since I will not be able to access this device at a moments notice, it needs to be able to adapt to a change in the password. Is this possible with the ESP8266, or should I switch to an Arduino WiFi board, or is something more powerful necessary?

2
  • The most common solution is to have the ESP act like an accesspoint, if it can't connect to the wifi network. It will then host a webpage, where you can set the correct networkname and password.
    – Gerben
    Feb 22, 2017 at 19:17
  • The ESPEasy firmware does the trick, but it may not do whatever you preprogranmed it to do
    – Paul
    Mar 25, 2017 at 9:15

2 Answers 2

1

The WiFiManager library was written for exactly this purpose.

0

Yes that's possible.

Just don't hard-code the password: store it in EEPROM.

A common way of doing it if for the ESP to present a wifi access point which serves a configuration page when it cannot successfully connect to another access point. Store the SSID and password in EEPROM.

6
  • On my laptop, if the wifi network password changes, I do not need to re-enter the password, it figures it out automatically. Is there a way I can do this on the ESP? Feb 22, 2017 at 16:05
  • 5
    I think you are mistaken about that.
    – Mark Smith
    Feb 22, 2017 at 16:32
  • Ok, I just realized I can use bluetooth for this project as well. Is there a way I can add a password to bluetooth to restrict access to specific devices? Feb 22, 2017 at 17:00
  • That's a new question.
    – Mark Smith
    Feb 22, 2017 at 17:06
  • Bluetooth authentication isn't very strong, you could do an ethernet connection, since these aren't password protected.
    – Paul
    Mar 25, 2017 at 9:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.