From edbfbf0f2c212c15dd8c1db5a0ddc004cd89e67b Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 13 Aug 2019 18:13:59 +0200 Subject: [PATCH] sds use query reporting mode --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index d401d6a..f3ab35d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -143,6 +143,10 @@ void poweroffDevices() { uv.shutdown(true); } + + //if (sensors_active.sds) { + // sds.sleep(); // use custom working period instead + //} } @@ -820,7 +824,7 @@ void setup() if (sds_fw.isOk()) { sensors_active.sds = true; - sds.setActiveReportingMode(); // ensures sensor is in 'active' reporting mode + sds.setQueryReportingMode(); // ensures sensor is in 'query' reporting mode sds.setCustomWorkingPeriod(5); // sensor sends data every 3 minutes } else { ESP_LOGW(TAG, "Failed to communicate with SDS011 sensor, check wiring?");