-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arduino_ConnectionHandler does not handle open networks correctly #114
Comments
Hi @thomasvdv what board are you using? I thing this should be handled at WiFi class level. |
Hi @pennam . I am using a Arduino UNO R4 Wifi. I can file a ticket with the Wifi library. Would it make sense to also include this check in Arduino_ConnectionHandler? |
Hi @thomasvdv i thought a bit about your request and i've changed my mind. I think you was right and this issue would be better handled in this library because is not correct for My proposal is to add a new |
Hi @pennam If you move it to a different constructor, then ArduinoIoTCloud will need to make changes to their thingProperties.h code generation. They currently call WiFiConnectionHandler ArduinoIoTPreferredConnection(SSID, PASS); |
yes you are right, this would be the correct way to handle it. |
Hi @pennam I am teaching a class in two weeks that depends on this fix. Would it be possible to get the fix release before then? I am happy to work on a patch if that helps. |
Hi @thomasvdv If you prepare a pr with the new For your class you should consider to load a custom |
At line 101 in
Arduino_WiFiConnectionHandler.cpp
:Arduino_ConnectionHandler/src/Arduino_WiFiConnectionHandler.cpp
Line 101 in 2b21c3c
The code should check for an empty password and, if so, call
WiFi.begin(_ssid)
instead ofWiFi.begin(_ssid, _password)
.WiFi.begin(_ssid, "")
results in a failed connection on open networks that do not require a password to connect.WiFi.begin(_ssid)
connects successfully.The text was updated successfully, but these errors were encountered: