Tadeas Dvoracek
Published

How Connect Sonoff to Cayenne

How to connect Sonoff to Cayenne.

IntermediateFull instructions provided1 hour3,286
How Connect Sonoff to Cayenne

Things used in this project

Story

Read more

Schematics

Sonoff schematics

Code

Code

Arduino
//#define CAYENNE_DEBUG         // Uncomment to show debug messages
#define CAYENNE_PRINT Serial  // Comment this out to disable prints and save space
#include "CayenneDefines.h"
#include "BlynkSimpleEsp8266.h"
#include "CayenneWiFiClient.h"

// Cayenne authentication token. This should be obtained from the Cayenne Dashboard.
char token[] = "TOKEN";
// Your network name and password.
char ssid[] = "SSID";
char password[] = "PASSWORD";

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

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

Credits

Tadeas Dvoracek
10 projects • 41 followers

Comments