Cayenne.begin stopped working


#1

Good morning, I was using this code in the morning, it was WORKING exacly, then I went out and when I came back, it wasn’t working anymore, I reinstalled the IDE, Libraries, re-upload the code and rebooted the computer… I add this Serial.println to see if the code was looping, but it doesn’t, the code stops exacly in “Cayenne.begin(token);” if I comment this line, the code works normally and start looping (but the cayenne doesn’t works)… I wanna know what’s going on? Why it stopped working… What should I’ve to do?

#define CAYENNE_PRINT Serial // Comment this out to disable prints and save space

#include <UIPEthernet.h>
#include <BlynkSimpleUIPEthernet.h>
#include <CayenneDefines.h>
#include <CayenneEthernetClient.h>

// Cayenne authentication token. This should be obtained from the Cayenne Dashboard.
char token[] = “mytoken”;

void setup()
{
Serial.begin(9600);
Cayenne.begin(token);
}

void loop()
{
Cayenne.run();
Serial.println(“C”);
delay(2000);
}


#2

Sorry for the late reply…I had this tab open and forgot about it. I would guess that there is no connection available to the Cayenne servers and so it is getting hung up and not printing anything for you. can you check that your device is connected?