Datasheet
Then open up the serial console of your Feather to see the connection and data:
Serial.print("My IP address: ");
Serial.println(Ethernet.localIP());
}
void loop() {
// if there's incoming data from the net connection.
// send it out the serial port. This is for debugging
// purposes only:
if (client.available()) {
char c = client.read();
Serial.write(c);
}
// if ten seconds have passed since your last connection,
// then connect again and send data:
if (millis() - lastConnectionTime > postingInterval) {
httpRequest();
}
}
// this method makes a HTTP connection to the server:
void httpRequest() {
// close any connection before send a new request.
// This will free the socket on the WiFi shield
client.stop();
// if there's a successful connection:
if (client.connect(URLHOST, 80)) {
Serial.println("connecting...");
// send the HTTP PUT request:
client.println("GET " URLPATH " HTTP/1.1");
client.println("Host: " URLHOST);
client.println("User-Agent: arduino-ethernet");
client.println("Connection: close");
client.println();
// note the time that the connection was made:
lastConnectionTime = millis();
}
else {
// if you couldn't make a connection:
Serial.println("connection failed");
}
}
If you're using a LoRa/RFM69 Feather, make sure to add a pinMode(8, INPUT_PULLUP) to disable the LoRa
or RFM69 radio
© Adafruit Industries https://learn.adafruit.com/adafruit-wiz5500-wiznet-ethernet-featherwing Page 17 of 20










