Connecting ESP8266 CP2102 Module


I’m using a ESP8266 CP2102 Module.

I tried to connect it to cayenne platform, but nothing seems to work.

Can anyone help?

Thank you

can you share a link to the device you are using.


Thank you!

which code are you using?

The code i’m using:

#include <CayenneMQTTESP8266.h>

// This example shows how to connect to Cayenne using an ESP8266 and send/receive sample data.
// Make sure you install the ESP8266 Board Package via the Arduino IDE Board Manager and select the correct ESP8266 board before compiling.

#define CAYENNE_PRINT Serial

// WiFi network info.
char ssid = “ssid”;
char wifiPassword = “wifiPassword”;

// Cayenne authentication info. This should be obtained from the Cayenne Dashboard.
char username = “af7ff680-f0fa-11e9-ba7c-716e7f5ba423”;
char password = “02659680d3bf6c2c0d9bd92a713f1bd1159ec0db”;
char clientID = “5d4e3630-3d56-11ea-b301-fd142d6c1e6c”;

unsigned long lastMillis = 0;

void setup() {
Cayenne.begin(username, password, clientID, ssid, wifiPassword);

void loop() {

// Default function for sending sensor data at intervals to Cayenne.
// You can also use functions for specific channels, e.g CAYENNE_OUT(1) for sending channel 1 data.
// Write data to Cayenne here. This example just sends the current uptime in milliseconds on virtual channel 0.
Cayenne.virtualWrite(0, millis());
// Some examples of other functions you can use to send data.
//Cayenne.celsiusWrite(1, 22.0);
//Cayenne.luxWrite(2, 700);
//Cayenne.virtualWrite(3, 50, TYPE_PROXIMITY, UNIT_CENTIMETER);

// Default function for processing actuator commands from the Cayenne Dashboard.
// You can also use functions for specific channels, e.g CAYENNE_IN(1) for channel 1 commands.
CAYENNE_LOG(“Channel %u, value %s”,, getValue.asString());
//Process message here. If there is an error set an error message using getValue.setError(), e.g getValue.setError(“Error message”);

How can I connect it to a eduroam (university wifi) network?

you need to add your wifi ssid (name) and password.

I did write that information.

I’m trying to connect to my university wifi, eduroam, how can I do it?

you need to add your university wifi ssid and password. thats what i am saying or is there something i am missing here.

My wifi network of my university is EDUROAM.
It uses WPA2-Enterprise and I have to insert my email and password to acess it.
How can I write that in my code, so I can connect?

you need to specific this earlier. there is no support from cayenne to connect to WPA2-enterprise.

Thank you for trying to help

Just to make it clear, there is no ESP8266 support for WPA2 enterprise. This isn’t a Cayenne limitation.

@adam but i had come across recently about some talk where esp8266 can connect, not sure what the progress is now.

Interesting, have any links? Last time I looked it wasn’t possible. If so, he could just connect to wifi manually and use the pubsubclient library.

a google search gave this results now