You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue with the WiFiUdpSendReceiveString example code.
All the example WiFi codes I have looked at use the following line to connect:
// Connect to WPA/WPA2 network. Change this line if using open or WEP network:
status = WiFi.begin(ssid, pass);
Now, with the WiFiUdpSendReceiveString example code, it seems the intention was similar, but the password variable has been missed.
// Connect to WPA/WPA2 network. Change this line if using open or WEP network:
status = WiFi.begin(ssid);
I believe that this code needs to be changed to include the password variable, or the comment needs to be changed to explain that the connection is for an open network.
From @Sebthepleb on March 21, 2014 3:27
There is an issue with the WiFiUdpSendReceiveString example code.
All the example WiFi codes I have looked at use the following line to connect:
// Connect to WPA/WPA2 network. Change this line if using open or WEP network:
status = WiFi.begin(ssid, pass);
Now, with the WiFiUdpSendReceiveString example code, it seems the intention was similar, but the password variable has been missed.
// Connect to WPA/WPA2 network. Change this line if using open or WEP network:
status = WiFi.begin(ssid);
I believe that this code needs to be changed to include the password variable, or the comment needs to be changed to explain that the connection is for an open network.
Copied from original issue: arduino/Arduino#1946
The text was updated successfully, but these errors were encountered: