Not loading arduino board

Hi! I have a problem to connect the arduino with the dashboard. Before uploading the code, I wrote AT commands AT+CWJAP=“ssid”,“pass”
AT+CIPSTART=“TCP”,“mqtt.mydevices.com”,1883. After that I uploaded the code:

#include <CayenneMQTTSerial.h>

char username = “----”;
char password = “”;
char clientID = “----”;

void setup()
{
Cayenne.begin(username, password, clientID);
}
void loop() {
Cayenne.loop();
}
CAYENNE_OUT_DEFAULT()
{Cayenne.virtualWrite(0, millis());}
CAYENNE_IN_DEFAULT()
{}

I think I’m missing something important, because the board in the dashboard is not loading. The arduino is connected with ESP01

Any help with the issue will be appreciated!

you need to use this code https://github.com/myDevicesIoT/Cayenne-MQTT-Arduino/blob/master/examples/Connections/ESP8266Shield/ESP8266Shield.ino

1 Like