From 52a1fe24415bd03aaff3b09bb1359ec88edb6e60 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 22 Jun 2024 08:31:34 -0400 Subject: [PATCH] Update adafruitio_00_publish_modified.cpp add tlm --- .../adafruitio_00_publish_modified.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stempayload/Payload_BME280_MPU6050_AIO/adafruitio_00_publish_modified.cpp b/stempayload/Payload_BME280_MPU6050_AIO/adafruitio_00_publish_modified.cpp index 9ac33dce..35dbc7fc 100644 --- a/stempayload/Payload_BME280_MPU6050_AIO/adafruitio_00_publish_modified.cpp +++ b/stempayload/Payload_BME280_MPU6050_AIO/adafruitio_00_publish_modified.cpp @@ -54,7 +54,7 @@ void aio_setup() { } -void aio_loop() { +void aio_loop(float tlm[]) { // io.run(); is required for all sketches. // 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 Serial.print("sending -> "); Serial.println(count); - counter->save(count); +// counter->save(count); + counter->save(tlm[0]); // increment the count by 1 count++;