Same project, new device

I have been working on a project that was coded on a NodeMCU. The question I have is if I want to use a UNO with a “KNACRO ESP8266 ESP-12E UART WIFI Wireless Shield Dev Board for Arduino UNO R3” from amazon, what has to be changed? When I do this I get the fallowing errors.

c;\Documents\Arduino\libraries\Cayenne-MQTT-ESP8266-master\src/CayenneMQTTESP8266.h:21:25: fatal error: ESP8266WiFi.h: No such file or directory

#include <ESP8266WiFi.h>

                     ^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

@scamilleri1228 its not officially supported by cayenne. but this method gets you going. WifiShield with arduino uno compiling error - #10 by adam

I don’t understand, can you explain a little further please?

@scamilleri1228 open the topic i have given earlier. there is post by @kreggly on how to connect a esp8266 as wifi shield to arduino.

In a nutshell, you need to buy an ESP with a supported AT command set, or
flash it with one.

Then you need to run the ESP shield code for Cayenne and connect and
configure the serial port to connect to your ESP.

I’ve been very busy at work, so if you can’t find tutorials to flash your
ESP, I can try to help you.

Cheers,

Craig

1 Like