tayfunulu / WiFiManager

WiFi manager for ESP8266 - ESP12 - ESP32 - micropython
MIT License
352 stars 105 forks source link

Not working as expected in a new network #18

Open alexanmtz opened 5 years ago

alexanmtz commented 5 years ago

After successfully setup a connection, the script is not working properly in a new network. It should be able to switch mode as the diagram on README if the current network is not found, so I would be able to setup a new one when runs 192.168.4.1?

Karijn commented 2 years ago

the Join on line 80 takes an empty string as separator, this should be a newline. f.write(''.join(lines)) should be f.write('\n'.join(lines))

ThomasWaldmann commented 2 years ago

@Karijn https://github.com/tayfunulu/WiFiManager/blob/b86a900cf5d46601be1d850828038f6cfad8fecc/wifimgr.py#L78

There is the "\n" you were missing.