User Manual
Client
The WICED Feather supports the standard Arduino Client (https://adafru.it/lFj) interface that is used by many
networking boards in the Arduino ecosystem.
Adapting Client Examples
Most existing Client based examples can easily be adapted to work with the WICED Feather board family if the
following changes are made to the sketches:
1. Update Header Includes
You will need to change the default WiFi (etc.) headers to the Adafruit versions, as shown below.
Remove Existing Headers
Existing headers like 'WiFi.h', 'WiFiUDP.h', etc., should be removed from the top of your sketch.
For example ...
Add Adafruit WICED Feather Header
... should be replaced with the single 'adafruit_feather.h' header file:
2. Change 'WiFi.*' References to 'Feather.*'
References to functions like WiFi.begin(ssid, pass) or WiFi.available() should be replaced with Feather.begin(ssid,
pass) or Feather.available():
Previous Client Code
#include <WiFi.h>
#include <WiFiUdp.h>
#include <WiFiTcp.h>
#include <adafruit_feather.h>
Only one header is required with the WICED Feather board family, since the key related headers are also
referenced in that one file.
// 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);
}
© Adafruit Industries https://learn.adafruit.com/introducing-the-adafruit-wiced-feather-wifi Page 156 of 202










