Update adafruitio_00_publish_modified.cpp 5 sec delay

beta-mqtt
Alan Johnston 2 years ago committed by GitHub
parent 30b49d7783
commit 5ff210a0a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -42,7 +42,7 @@ void aio_setup() {
// wait for serial monitor to open // wait for serial monitor to open
while(! Serial); while(! Serial);
Serial.print("Connecting to Adafruit IO"); Serial.print("\nConnecting to Adafruit IO");
// connect to io.adafruit.com // connect to io.adafruit.com
io.connect(); io.connect();
@ -63,7 +63,7 @@ void aio_loop(float tlm[]) {
if (!aio_connected) { if (!aio_connected) {
if (io.status() < AIO_CONNECTED) { if (io.status() < AIO_CONNECTED) {
Serial.println("Connecting to Adafruit IO..."); Serial.println("\nConnecting to Adafruit IO...");
} else { } else {
Serial.println(); Serial.println();
Serial.println(io.statusText()); Serial.println(io.statusText());
@ -99,6 +99,6 @@ void aio_loop(float tlm[]) {
// Adafruit IO is rate limited for publishing, so a delay is required in // Adafruit IO is rate limited for publishing, so a delay is required in
// between feed->save events. In this example, we will wait three seconds // between feed->save events. In this example, we will wait three seconds
// (1000 milliseconds == 1 second) during each loop. // (1000 milliseconds == 1 second) during each loop.
delay(3000); // 15000 delay(5000); // 1000
} }
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.