Datasheet
// with the IP address and port of the server
// that you want to connect to (port 80 is default for HTTP):
EthernetClient client;
unsigned long lastConnectionTime = 0; // last time you connected to the server, in milliseconds
const unsigned long postingInterval = 10L * 1000L; // delay between updates, in milliseconds
// the "L" is needed to use long type numbers
//#define WIZ_RESET 9
#if defined(ESP8266)
// default for ESPressif
#define WIZ_CS 15
#elif defined(ESP32)
#define WIZ_CS 33
#elif defined(ARDUINO_STM32_FEATHER)
// default for WICED
#define WIZ_CS PB4
#elif defined(TEENSYDUINO)
#define WIZ_CS 10
#elif defined(ARDUINO_FEATHER52832)
#define WIZ_CS 11
#else // default for 328p, 32u4, M4 and M0
#define WIZ_CS 10
#endif
void setup() {
#if defined(WIZ_RESET)
pinMode(WIZ_RESET, OUTPUT);
digitalWrite(WIZ_RESET, HIGH);
delay(100);
digitalWrite(WIZ_RESET, LOW);
delay(100);
digitalWrite(WIZ_RESET, HIGH);
#endif
#if !defined(ESP8266)
while (!Serial); // wait for serial port to connect.
#endif
// Open serial communications and wait for port to open:
Serial.begin(115200);
delay(1000);
Serial.println("\nHello! I am the Ethernet FeatherWing");
Ethernet.init(WIZ_CS);
// give the ethernet module time to boot up:
delay(1000);
// start the Ethernet connection:
if (Ethernet.begin(mac) == 0) {
Serial.println("Failed to configure Ethernet using DHCP");
// no point in carrying on, so do nothing forevermore:
// try to congifure using IP address instead of DHCP:
Ethernet.begin(mac, ip);
}
// print the Ethernet board/shield's IP address:
Serial.print("My IP address: ");
© Adafruit Industries https://learn.adafruit.com/adafruit-wiz5500-wiznet-ethernet-featherwing Page 16 of 20










