Arduino With W5100 Sheild Compiling error

Hi Guys

I am attempting to complete the first tutorial and connect to Cayenne. I have an Arduino with w5100 ethernet sheild. Got Arduino IDE copied and pasted the sketch, got the CayenneMQTT library. When I try to compile I get this.

Arduino: 1.8.12 (Windows 7), Board: “Arduino Uno”

In file included from C:\Users\Documents\Arduino\sketch_mar13a\sketch_mar13a.ino:6:0:

C:\Users\Documents\Arduino\libraries\CayenneMQTT\src/CayenneMQTTESP8266.h:25:10: fatal error: ESP8266WiFi.h: No such file or directory

#include <ESP8266WiFi.h>


compilation terminated.

exit status 1
Error compiling for board Arduino Uno.

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.

This is the Sketch with the Library included.

#include <CayenneArduinoDefines.h>
#include <CayenneArduinoMQTTClient.h>
#include <CayenneHandlers.h>
#include <CayenneMessage.h>
#include <CayenneMQTTESP32.h>
#include <CayenneMQTTESP8266.h>
#include <CayenneMQTTESP8266Shield.h>
#include <CayenneMQTTEthernet.h>
#include <CayenneMQTTEthernetClient.h>
#include <CayenneMQTTEthernetW5200.h>
#include <CayenneMQTTEthernetW5500.h>
#include <CayenneMQTTGSM.h>
#include <CayenneMQTTGSMClient.h>
#include <CayenneMQTTMKR1000.h>
#include <CayenneMQTTSerial.h>
#include <CayenneMQTTSerialClient.h>
#include <CayenneMQTTWiFi.h>
#include <CayenneMQTTWiFi101.h>
#include <CayenneMQTTWiFiClient.h>
#include <CayenneMQTTYun.h>
#include <CayenneMQTTYunClient.h>
#include <CayenneTemperature.h>
#include <CayenneTMP102.h>
#include <CayenneVCNL4000.h>
#include <DetectDevice.h>

This example shows how to connect to Cayenne using an Ethernet W5100 shield and send/receive sample data.

The CayenneMQTT Library is required to run this sketch. If you have not already done so you can install it from the Arduino IDE Library Manager.


  1. Set the Cayenne authentication info to match the authentication info from the Dashboard.
  2. Compile and upload the sketch.
  3. A temporary widget will be automatically generated in the Cayenne Dashboard. To make the widget permanent click the plus sign on the widget.

//#define CAYENNE_DEBUG // Uncomment to show debug messages
#define CAYENNE_PRINT Serial // Comment this out to disable prints and save space
#include <CayenneMQTTEthernet.h>

// Cayenne authentication info. This should be obtained from the Cayenne Dashboard.
char username = “abe791e0-017d-11e8-8ebb-078f03a4ea8d”;
char password = “d7f5d993d9c2518265a62bd68ecfa5361419f642”;
char clientID = “9fca2180-6598-11ea-84bb-8f71124cfdfb”;

void setup() {
Cayenne.begin(username, password, clientID);

void loop() {

// Default function for sending sensor data at intervals to Cayenne.
// You can also use functions for specific channels, e.g CAYENNE_OUT(1) for sending channel 1 data.
// Write data to Cayenne here. This example just sends the current uptime in milliseconds on virtual channel 0.
Cayenne.virtualWrite(0, millis());
// Some examples of other functions you can use to send data.
//Cayenne.celsiusWrite(1, 22.0);
//Cayenne.luxWrite(2, 700);
//Cayenne.virtualWrite(3, 50, TYPE_PROXIMITY, UNIT_CENTIMETER);

// Default function for processing actuator commands from the Cayenne Dashboard.
// You can also use functions for specific channels, e.g CAYENNE_IN(1) for channel 1 commands.
CAYENNE_LOG(“Channel %u, value %s”,, getValue.asString());
//Process message here. If there is an error set an error message using getValue.setError(), e.g getValue.setError(“Error message”);

Can someone Please Help?

use this code Cayenne-MQTT-Arduino/EthernetShieldW5100.ino at master · myDevicesIoT/Cayenne-MQTT-Arduino · GitHub