adafruit / Adafruit_IO_Arduino

Arduino library to access Adafruit IO from WiFi, cellular, and ethernet modules.
Other
208 stars 108 forks source link

[Connect to Adafruit IO from an open wifi network (no password)] #156

Open dimitrioschatzinikolis opened 2 years ago

dimitrioschatzinikolis commented 2 years ago

Hi All,

The problem that I am facing has to do with wifi connection issues. More specifically, I am in an educational institute, and I want to use the "open" network, that is the network that requires no password. Although I am able to connect to the wifi open network when I use a simple wifi_connect example, when I use the adafruit_00_publish example, I am not allowed to omit the password parameter. Do you think it is possible to include an option to the scripts to use wifi networks that require no password?

bradrblack commented 1 year ago

You could try connecting to the WiFi as you do with wifi_connect and then initialize with ...

AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, "", "");

which prevents AIO from connecting to the network on its own.

There are some new examples in the 4.2.3 library about working with WiFiManager that also do this.