Hi, I’m trying a long time ago how to connect my arduino mega 2560 with esp8266 and every time I try something new it always throws me the same error
I leave details of the error and the code that I am using.
#include <ESP8266_Lib.h>
#include <cayenneMQTTESP8266.h>
#define CAYENNE_DEBUG
#define CAYENNE_PRINT Serial
//Coneccion a internet
char ssid[] = "";
char wifiPassword[] = "";
//Autentificacion chayanne
char username[] = ""
char password[] = ""
char clientID[] = ""
unsigned long lastmillis = 0;
void setup() {
Serial.begin(9600);
Cayenne.begin(username, password, cleintID, ssid, wifiPassword)
}
void loop() {
cayenne.loop();
//publica datos cada 10 segundos
if (millis() - lastMillis > 1000) {
lastmillis = millis();
//escribe datos en chayanne
cayenne.virtualWrite( 0, lastmillis);
}
}
CAYENNE_IN_DEFAULT()
{
C:\Users\Snaab\Desktop\tesis\IDE\chayane\chayane.ino:2:25: fatal error: ESP8266_Lib.h: No such file or directory
#include <ESP8266_Lib.h>
^
compilation terminated.
exit status 1
Error compilando para la tarjeta Arduino/Genuino Mega or Mega 2560.