Connection


#1

i can’t connect my esp board to the wifi network even though the supplies are proper and there is a proper connection with arduino. i have even downloaded esp board files and tried AT commands but still the connection is not established. someone please help.


#2

Hi @deepakverma.cjc,

Can you let us know which board you are using and also the code you are trying to use to connect?

Thanks,

-Benny


#3

Screenshots really help too.


#4

/*
Cayenne WiFi Example

This sketch connects to the Cayenne server using an Arduino WiFi shield
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. Set the network name and password.
  3. 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 <CayenneWiFi.h>

// Cayenne authentication token. This should be obtained from the Cayenne Dashboard.
char token[] = “zlj4q13y0h”;
// Your network name and password.
char ssid[] = “NetworkSSID”;
char password[] = “NetworkPassword”;

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

void loop()
{
Cayenne.run();
}


#5

Arduino: 1.6.12 (Windows 7), Board: “Arduino/Genuino Uno”

Sketch uses 12,854 bytes (39%) of program storage space. Maximum is 32,256 bytes.
Global variables use 460 bytes (22%) of dynamic memory, leaving 1,588 bytes for local variables. Maximum is 2,048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x29
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


#6

Hi @deepakverma.cjc

Those ‘avrdude’ error messages look like a communication failure between the Arduino IDE and the Uno rather than an issue with Cayenne or your sketch code.

The first thing I’d try is replacing your IDE version with the latest (1.8.3) so you have all of the latest bugfixes on that end. You can download it here: https://www.arduino.cc/en/Main/Software


#7

can’t it work on the on going version


#8

i m using 1.6.12


#9

Can you update to 1.8.3 to see if that improves things?