Unable to add ESP8266


#1

I followed the Acrobotic tutorial by Cayenne https://youtu.be/6YAnqHTm7_o

I have copied the exact code from the tutorial.

esp8266

My board is “Lolin NodeMCU ESP8266 CP2102 NodeMCU WIFI Serial Wireless Module” . i have attached the picture of board from the website i bought.

I am getting following error in my IDE
"Arduino: 1.8.5 (Windows 10), Board: “NodeMCU 1.0 (ESP-12E Module), 80 MHz, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200”

C:\Users\vishal\Desktop\sketch_apr30b\sketch_apr30b.ino:1:32: fatal error: CayenneMQTTESP8266.h: No such file or directory

#include <CayenneMQTTESP8266.h>

                            ^

compilation terminated.

exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

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

Please help me @adam @bestes :pray::pray:


Adding a New Device using MQTT
#2

In the Arduino IDE go to Sketch>Include Library>Manage Libraries and search for Cayenne. Install the library you need (Cayenne-MQTT-ESP8266)


#3

But @adam , I have already added it. Any idea further ?


#4

Remove all the Cayenne libraries and try again with only the Cayenne-MQTT-ESP8266 library installed.


#5

follow this tutorial Adding a New Device using MQTT