Skip to content

Commit 39ecb75

Browse files
authored
Update SendDataOnTrigger.ino
1 parent 45992e7 commit 39ecb75

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

examples/Basics/SendDataOnTrigger/SendDataOnTrigger.ino

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212

1313
#define CAYENNE_DEBUG
1414
#define CAYENNE_PRINT Serial
15-
#include <CayenneMQTTESP8266.h>
16-
17-
char ssid[] = "ssid";
18-
char wifiPassword[] = "password";
15+
#include <CayenneMQTTEthernet.h> // Change this to use a different communication device. See Communications examples.
1916

2017
// Cayenne authentication info. This should be obtained from the Cayenne Dashboard.
2118
char username[] = "MQTT_USERNAME";
@@ -31,7 +28,7 @@ bool crossedThreshold = false;
3128

3229
void setup() {
3330
Serial.begin(9600);
34-
Cayenne.begin(username, password, clientID, ssid, wifiPassword);
31+
Cayenne.begin(username, password, clientID);
3532
}
3633

3734
void sendTriggerValue(int channel, int value, int threshold, bool sendBelowThreshold) {

0 commit comments

Comments
 (0)