Error on Cayenne ESP8266 Code

Hi i wanna connect my generic ESP8266 Arduino UNO with Cayenne platform. I have a issue about libs. Cayenne have a too much libs on Arduino. Can you help me? My error on Arduino IDE :

Arduino:1.8.4 (Windows 10), Kart:“Arduino/Genuino Uno”

In file included from C:\Program Files (x86)\Arduino\libraries\ESP8266WiFi\src/ESP8266WiFi.h:33:0,

             from C:\Users\mucittin\Documents\Arduino\libraries\Cayenne-MQTT-ESP8266-master\src/CayenneMQTTESP8266.h:21,

             from C:\Users\mucittin\AppData\Local\Temp\arduino_modified_sketch_864497\ESP8266.ino:6:

C:\Program Files (x86)\Arduino\libraries\ESP8266WiFi\src/ESP8266WiFiType.h:26:19: fatal error: queue.h: No such file or directory

#include <queue.h>

               ^

compilation terminated.

“CayenneMQTTESP8266.h” için birden fazla library bulundu
Kullanılıyor: C:\Users\mucittin\Documents\Arduino\libraries\Cayenne-MQTT-ESP8266-master
Kullanılmıyor: C:\Program Files (x86)\Arduino\libraries\Cayenne-MQTT-ESP8266-master
Kullanılmıyor: C:\Program Files (x86)\Arduino\libraries\Cayenne-MQTT-ESP8266-master
Kullanılmıyor: C:\Program Files (x86)\Arduino\libraries\Cayenne-MQTT-ESP8266-master
Kullanılmıyor: C:\Program Files (x86)\Arduino\libraries\Cayenne-MQTT-ESP8266-master
exit status 1
Error compiling for board Arduino/Genuino Uno.

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

Thanks for help!

from there error it looks like you either have the wrong board selected or have not installed the ESP boards. Here are instructions on doing so.

1 Like

I am just using Arduino Uno and ESP8266 i am not using nodemcu or other cards.

Ah, I see now. Follow this post here. Using an ESP8266 as a shield is still not officially supported.

Bumping this old thread to share that we’ve just provided support in our MQTT Arduino library for using ESP8266 as a shield :slight_smile: We’ve done basic testing and works well. Give it a try for your project and let us know how it works out for you !

Here is the updated library on our github:

and the code can be found here:

1 Like