Closed benpeart closed 2 years ago
After doing some investigation, it appears from both the readme.md and looking at the code that any password shorter than 8 characters is considered invalid.
This is intentional for security reason, and I won't compromise the feature. Some router even won't let you connect if pwd length < 8 It's up to you to modify the code yourself for your special use-case.
I'm a little confused/surprised. Are you saying you won't allow the library to connect to open networks? This network is configured with no authentication - no WEP, WPA, or WPA2. It is not configured with encryption (TKIP, AES). This is an entirely valid way to configure a network that is supported by every device and OS I've ever known.
Sure, I can fork the library and add support for connecting to open networks myself but that defeats much of the value of having shared libraries I can use without having to write it all myself.
I'm converting my Kaleidoscope project from using ESPAsync_WiFiManager to the _Lite version. I like that it enables me to provide default credentials so that in many situations, it will 'just work' without any user input. I also appreciate that the _Lite version has incorporated the DRD/MRD logic as well as the new 'Run' method that monitors the connection and will attempt to reconnect. I had to write the logic for these features before and appreciate being able to use you're more robust implementations. Thank you for making them available to us to use!
I've run into a couple of bugs/limitations I wanted to bring up. I'll open separate issues for each of them to make tracking them in Github easier.
First, I am unable to connect to open access points with ESPAsync_WiFiManager_Lite. I have a 'Guest' network/SSID that has no password. When I enter 'guest' and leave the password empty in the UI and press "Save" I get a popup that says '192.168.4.1 says Updated' but when it reboots, it fails to connect and enters AP mode and I have to enter the config portal again.
After doing some investigation, it appears from both the readme.md and looking at the code that any password shorter than 8 characters is considered invalid.
After reading this, I tried entering 8 characters of garbage (ie 12345678) in the password field and that did get the UI to accept and save the SSID and password but it then fails to connect to the open access point given it doesn't require a password. I entered a 2nd SSID and password that does require a password and it correctly connect to the second, password protected access point correctly, it just won't connect to an open access point with no password.