From bf62d448ac7fed9b8bada67fedfb7a5a8353da8d Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 18 Nov 2018 16:45:33 +0100 Subject: [PATCH] BME680: added cyclic sensor data transmit --- platformio.ini | 2 +- src/senddata.cpp | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 86e1f185..55a4789f 100644 --- a/platformio.ini +++ b/platformio.ini @@ -29,7 +29,7 @@ description = Paxcounter is a proof-of-concept ESP32 device for metering passeng [common] ; for release_version use max. 10 chars total, use any decimal format like "a.b.c" -release_version = 1.6.81 +release_version = 1.6.82 ; DEBUG LEVEL: For production run set to 0, otherwise device will leak RAM while running! ; 0=None, 1=Error, 2=Warn, 3=Info, 4=Debug, 5=Verbose debug_level = 0 diff --git a/src/senddata.cpp b/src/senddata.cpp index c8deafae..b9bc467d 100644 --- a/src/senddata.cpp +++ b/src/senddata.cpp @@ -52,6 +52,13 @@ void sendCounter() { #endif SendPayload(COUNTERPORT); +// if we have MEMS sensor, send sensor data in separate frame +#ifdef HAS_BME + payload.reset(); + payload.addBME(bme_status); + SendPayload(BMEPORT); +#endif + } // sendCounter() void flushQueues() {