Skip to content

Commit b4028da

Browse files
committed
Added comment to explain how to change the interval for publishing data.
1 parent 4305ca9 commit b4028da

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

examples/Connections/ArduinoYun/ArduinoYun.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ void setup() {
1919
void loop() {
2020
Cayenne.loop();
2121

22+
//Publish data every 10 seconds (10000 milliseconds). Change this value to publish at a different interval.
2223
if (millis() - lastMillis > 10000) {
2324
lastMillis = millis();
2425
//Write data to Cayenne here. This example just sends the current uptime in milliseconds.

examples/Connections/EthernetShieldW5100/EthernetShieldW5100.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ void setup() {
1919
void loop() {
2020
Cayenne.loop();
2121

22+
//Publish data every 10 seconds (10000 milliseconds). Change this value to publish at a different interval.
2223
if(millis() - lastMillis > 10000) {
2324
lastMillis = millis();
2425
//Write data to Cayenne here. This example just sends the current uptime in milliseconds.

examples/Connections/EthernetShieldW5200/EthernetShieldW5200.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ void setup() {
1919
void loop() {
2020
Cayenne.loop();
2121

22+
//Publish data every 10 seconds (10000 milliseconds). Change this value to publish at a different interval.
2223
if (millis() - lastMillis > 10000) {
2324
lastMillis = millis();
2425
//Write data to Cayenne here. This example just sends the current uptime in milliseconds.

examples/Connections/EthernetShieldW5500/EthernetShieldW5500.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ void setup() {
1919
void loop() {
2020
Cayenne.loop();
2121

22+
//Publish data every 10 seconds (10000 milliseconds). Change this value to publish at a different interval.
2223
if (millis() - lastMillis > 10000) {
2324
lastMillis = millis();
2425
//Write data to Cayenne here. This example just sends the current uptime in milliseconds.

examples/Connections/ManualConnection/ManualConnection.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ void setup() {
3030
void loop() {
3131
Cayenne.loop();
3232

33+
//Publish data every 10 seconds (10000 milliseconds). Change this value to publish at a different interval.
3334
if (millis() - lastMillis > 10000) {
3435
lastMillis = millis();
3536
//Write data to Cayenne here. This example just sends the current uptime in milliseconds.

examples/Connections/WiFi101Shield/WiFi101Shield.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ void setup() {
2323
void loop() {
2424
Cayenne.loop();
2525

26+
//Publish data every 10 seconds (10000 milliseconds). Change this value to publish at a different interval.
2627
if (millis() - lastMillis > 10000) {
2728
lastMillis = millis();
2829
//Write data to Cayenne here. This example just sends the current uptime in milliseconds.

examples/Connections/WiFiShield/WiFiShield.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ void setup() {
2323
void loop() {
2424
Cayenne.loop();
2525

26+
//Publish data every 10 seconds (10000 milliseconds). Change this value to publish at a different interval.
2627
if (millis() - lastMillis > 10000) {
2728
lastMillis = millis();
2829
//Write data to Cayenne here. This example just sends the current uptime in milliseconds.

0 commit comments

Comments
 (0)