|
|
@ -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?"); |
|
|
|