ferreira-igor / micropython-wifi_manager

WiFi Manager for ESP8266 and ESP32 using MicroPython.
MIT License
50 stars 25 forks source link

uploaded wifi.dat cannot be parsed #3

Closed CharlieAt closed 3 years ago

CharlieAt commented 3 years ago

ampy (maybe other clients too) change the line endings from unix to dos. the 'restrictive' strip("\n") leaves the '\r' in the password causing the subsequent self.wlan_sta.connect to fail. https://github.com/ferreira-igor/micropython-wifi_manager/blob/5e99b12575661644e7630a4e4a7a1d274d326925/wifi_manager.py#L71 changing this to: ssid, password = line.strip().split(";") makes this line ending agnostic.