User Manual
// Attempt to connect to the AP
if ( Feather.connect("SSID", "PASSWORD", ENC_TYPE_AUTO ) )
{
int8_t rssi = Feather.RSSI();
uint32_t ipAddress = Feather.localIP();
// Do something now that you are connected to the AP!
}
else
{
// Display the error message
err_t err = Feather.errno();
Serial.println("Connection Error:");
switch (err)
{
case ERROR_WWD_ACCESS_POINT_NOT_FOUND:
// SSID wasn't found when scanning for APs
Serial.println("Invalid SSID");
break;
case ERROR_WWD_INVALID_KEY:
// Invalid SSID passkey
Serial.println("Invalid Password");
break;
default:
// The most likely cause of errors at this point is that
// you are just out of the device/AP operating range
Serial.print(Feather.errno());
Serial.print(":");
Serial.println(Feather.errstr());
break;
}
}
© Adafruit Industries https://learn.adafruit.com/introducing-the-adafruit-wiced-feather-wifi Page 155 of 202










