Update adafruitio_00_publish_modified.cpp print waiting

beta-mqtt
Alan Johnston 2 years ago committed by GitHub
parent 8786c298ae
commit cbb967cbbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -81,7 +81,10 @@ void aio_loop(float tlm[]) {
// io.adafruit.com, and processes any incoming data.
io.run();
if ((millis() - time_stamp) > 8000) { // Only send if 8 seconds have passed
if ((millis() - time_stamp) < 8000) { // Only send if 8 seconds have passed
Serial.print("\nWaiting to send Adafruit IO\n");
}
else {
time_stamp = millis();
// save count to the 'counter' feed on Adafruit IO
Serial.print("\nSending to Adafruit IO -> ");

Loading…
Cancel
Save

Powered by TurnKey Linux.