Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By ian
#14723 Chris, looks very promising! :)
Sadly, it doesn't work for me :(
Glancing through your code it seems that your function 'mdns1()' is never called(?)
Hang in there.

Ian
User avatar
By draco
#14827 I wrote a little sketch that searches through the entire flash chip to look for the WiFi SSID and Password. Here were my results:

Code: Select allSearch SSID: NiceSSID
Search Password: MyPassword

Found     SSID at: 0x07E010
Found Password at: 0x07E037
Found     SSID at: 0x07E144
Found Password at: 0x07E164


07E010 | 4E 69 63 65  53 53 49 44   00 00 00 00  00 00 00 00  | NiceSSID........ |
07E020 | 00 00 00 00  00 00 00 00   00 00 00 00  00 00 00 00  | ................ |
07E030 | 03 05 03 00  03 00 01 4D   79 50 61 73  73 77 6F 72  | .......MyPasswor |
07E040 | 64 00 00 00  00 00 00 00   00 00 00 00  00 00 00 00  | d............... |
07E050 | 00 00 00 00  00 00 00 00   00 00 00 00  00 00 00 00  | ................ |
07E060 | 00 00 00 00  00 00 00 00   00 00 00 00  00 00 00 00  | ................ |
07E070 | 00 00 00 00  00 00 00 00                             | ........         |

07E140 | 08 00 00 00  4E 69 63 65   53 53 49 44  00 00 00 00  | ....NiceSSID.... |
07E150 | 00 00 00 00  00 00 00 00   00 00 00 00  00 00 00 00  | ................ |
07E160 | 00 00 00 00  4D 79 50 61   73 73 77 6F  72 64 00 00  | ....MyPassword.. |
07E170 | 00 00 00 00  00 00 00 00   00 00 00 00  00 00 00 00  | ................ |
07E180 | 00 00 00 00  00 00 00 00   00 00 00 00  00 00 00 00  | ................ |
07E190 | 00 00 00 00  00 00 00 00   00 00 00 00  00 00 00 00  | ................ |
07E1A0 | 00 00 00 00  FF FF FF FF   FF FF FF FF  FF FF FF FF  | ................ |


The ESP8266 Arduino seems to save two copies of two sets of WiFi credentials. You can see above that my SSID/Password were stored twice... But also, it stores the PREVIOUS SSID/Password as well. Those appear in 0x07Dxxx instead of 0x07Exxx as seen above.

It appears to alternate between the two blocks. That is, if I were to use a new SSID/Password, it would get written into 0x07Dxxx, leaving the copy in 0x07Exxx as-is.
User avatar
By draco
#14829 I have written a little sketch that will pull the WiFi credentials straight out of flash, where the system is storing them, saving you from having to use the EEPROM functions to store a duplicate copy, if you wish. The sketch is attached.

I don't know of a way to differentiate between which is the current and which is the previous set of credentials, since the system appears to store both in an alternating fashion. Maybe someone else will have an idea where to look to find that info.
You do not have the required permissions to view the files attached to this post.