Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

ESP8266WiFiMulti does not record the credentials of the last connected network

Open odilonafonso opened this issue 10 years ago • 2 comments

Basic Infos

Hardware

Hardware: ESP-12 NodeMCU Core Version: 2.3.0-rc2

Description

I provided the credentials of some WiFi networks usually use with: WiFIMulti.addAP (sid, pass)

And then I used: WiFiMulti.run () to connect.

The connection went well and I figured the supplied credentials would be recorded on the chip in the same way that happens when I use:

WiFi.begin (sid, passw)

However, when trying to connect me through:

WiFI.begin () (without credentials)

I noted that previous credentials had not been recorded.

That's right this behavior? Is this how it works?

odilonafonso avatar Oct 13 '16 19:10 odilonafonso

As far as I know, it's not even supposed to store any other credentials than those supplied to WiFi.begin()

If you wish to store credentials for multiple networks for use with WiFiMulti then you should manually store those in EEPROM and read them at boot yourself from there.

WereCatf avatar Oct 14 '16 12:10 WereCatf

Thanks @WereCatf

Well, I'll make a method in ESP8266WiFiMulti to store the credentials, as in WiFi.begin ().

odilonafonso avatar Oct 14 '16 14:10 odilonafonso