Skip to content
Snippets Groups Projects
Unverified Commit 30a87091 authored by Daniel Friesel's avatar Daniel Friesel
Browse files

README: configuration needs to be written via (soft)uart

parent 87f3d0c1
No related branches found
No related tags found
No related merge requests found
...@@ -69,12 +69,12 @@ mqtt_host = "..." ...@@ -69,12 +69,12 @@ mqtt_host = "..."
If desired, **sds011.lua** can be used to configure the SDS011 sensor. If desired, **sds011.lua** can be used to configure the SDS011 sensor.
Currently, the following commands are supported Currently, the following commands are supported
* `sds011.set_report_mode(active)` * `port:write(sds011.set_report_mode(active))`
* active == true: periodically report PM2.5 and PM10 values via UART * active == true: periodically report PM2.5 and PM10 values via UART
* active == false: only report PM2.5 and PM10 values when queried * active == false: only report PM2.5 and PM10 values when queried
* `sds011.sleep(sleep)` * `port:write(sds011.sleep(sleep))`
* sleep == true: put sensor into sleep mode. The fan is turned off, no further measurements are performed * sleep == true: put sensor into sleep mode. The fan is turned off, no further measurements are performed
* sleep == false: wake up sensor. * sleep == false: wake up sensor.
* `sds011.set_work_period(period)` * `port:write(sds011.set_work_period(period))`
* period == 0: continuous operation (about one measurement per second) * period == 0: continuous operation (about one measurement per second)
* 0 < *period* ≤ 30: about one measurement every *period* minutes; fan turned off in-between * 0 < *period* ≤ 30: about one measurement every *period* minutes; fan turned off in-between
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment