Cant connect to cayenne

Hello,
I want to connect my Arduino UNO with Ethernet sheild to Cayenne. I’m using windows 7. but it cant connect. what can i do?

Regards,
Ahmed

Hi @elngar_7,

Could you show us which sketch file you are using, and the output from your Arduino IDE serial monitor when attempting to connect?

Thanks for your reply. here is the sketch i used

/*
Cayenne Ethernet Example

This sketch connects to the Cayenne server using an Arduino Ethernet Shield W5100
and runs the main communication loop.

The Cayenne Library is required to run this sketch. If you have not already done so you can install it from the Arduino IDE Library Manager.

Steps:

  1. Set the token variable to match the Arduino token from the Dashboard.
  2. Compile and upload this sketch.

For Cayenne Dashboard widgets using digital or analog pins this sketch will automatically
send data on those pins to the Cayenne server. If the widgets use Virtual Pins, data
should be sent to those pins using virtualWrites. Examples for sending and receiving
Virtual Pin data are under the Basics folder.
*/

//#define CAYENNE_DEBUG // Uncomment to show debug messages
#define CAYENNE_PRINT Serial // Comment this out to disable prints and save space

#include <CayenneEthernet.h
// Cayenne authentication token. This should be obtained from the Cayenne Dashboard.
char token = “----------------”;

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

Also, Here is the output from Arduino serial monitor:

[0] MAC: FE-B1-6B-D4-CD-AD
[0] Getting IP…
[60445] DHCP Failed!
[0] MAC: FE-B1-6B-D4-CD-AD
[1] Getting IP…
[60446] DHCP Failed!
[1] MAC: FE-B1-6B-D4-CD-AD
[1] Getting IP…

Regards

I see now, that DHCP Failed message means that your Arduino is unable to receive an IP address from the router on your network. I made up a big post of reasons that we’ve run into where users have seen this error some time ago. I’d start there and step through each of these issues to rule them out or see if they help.