So I picked myself up a shiny new Arduino WiFi Rev2 and updated the firmware to the latest 1.2.8.
Trying out some simple sketches. I'd like to set the hostname for my sketch so I use the example:
WiFi.setHostname(“MyArduino”);
// attempt to connect to Wifi network:
while (status != WL_CONNECTED) {
Serial.print("Attempting to connect to SSID: ");
Serial.println(ssid);
// Connect to WPA/WPA2 network. Change this line if using open or WEP network:
status = WiFi.begin(ssid, pass);
// wait 10 seconds for connection:
delay(10000);
}
Of course, the hostname as reported by the router never changes, it's aways "arduino-abcd" with the abcd being the MAC. That's not a deal breaker, but it looks like Arduino has had some problems with this for a while. Anyone use these and get this to work?
edit: Don't suggest I use ESP stuff instead. Those have serious issues with RF noise, and they're not good for my applications.
So I picked myself up a shiny new Arduino WiFi Rev2 and updated the firmware to the latest 1.2.8.
Trying out some simple sketches. I'd like to set the hostname for my sketch so I use the example:
` WiFi.setHostname(“MyArduino”);
// attempt to connect to Wifi network:
while (status != WL_CONNECTED) {
Serial.print("Attempting to connect to SSID: ");
Serial.println(ssid);
// Connect to WPA/WPA2 network. Change this line if using open or WEP network:
status = WiFi.begin(ssid, pass);
// wait 10 seconds for connection:
delay(10000);
}
`
Of course, the hostname as reported by the router never changes, it's aways "arduino-abcd" with the abcd being the MAC. That's not a deal breaker, but it looks like Arduino has had some problems with this for a while. Anyone use these and get this to work?
edit: Don't suggest I use ESP stuff instead. Those have serious issues with RF noise, and they're not good for my applications.
(post is archived)