Update adafruitio_00_publish_modified.cpp add tlm

beta-mqtt
Alan Johnston 2 years ago committed by GitHub
parent 9d23d19ef4
commit 52a1fe2441
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -54,7 +54,7 @@ void aio_setup() {
} }
void aio_loop() { void aio_loop(float tlm[]) {
// io.run(); is required for all sketches. // io.run(); is required for all sketches.
// it should always be present at the top of your loop // it should always be present at the top of your loop
@ -65,7 +65,8 @@ void aio_loop() {
// save count to the 'counter' feed on Adafruit IO // save count to the 'counter' feed on Adafruit IO
Serial.print("sending -> "); Serial.print("sending -> ");
Serial.println(count); Serial.println(count);
counter->save(count); // counter->save(count);
counter->save(tlm[0]);
// increment the count by 1 // increment the count by 1
count++; count++;

Loading…
Cancel
Save

Powered by TurnKey Linux.