Go Down

Topic: connect to unsecure network (Read 274 times) previous topic - next topic

supperap

Hi

I am just started to use mrk1000 wifi with IoT Cloud. I connect fine with wpa2; but if I use an unsecure hotspot, it will not connect. I use the strings SECRET_SSID and SECRET_PASS, but since there is no password I leave SECRET_PAS empty


 But I think the problem is something else, therefore I need some guidens to solve the problem. 

Regards
Supperap

jameslo

Try omitting the password in your call to WiFi.begin--just provided the SSID.  Here is an example from the WiFi101 library for connecting to an unsecured network:  https://www.arduino.cc/en/Tutorial/LibraryExamples/Wifi101ConnectNoEncryption

supperap

yes, but will like to leave the software as it is...but I think the wifi101 should tjek if pass field is empty, and then connect unsecure. Therefore I need a hack, so it undertand it (with minimal code change).

Regards
Supperap

Klaus_K

Your use case is rare most WiFi networks are secured.

When you hack the library you will need to do this every time you/Arduino update the library. So, minimal code change is to change the sketch at the application level not the library.

Go Up