Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
esp8266-nodemcu-sds011
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
esp8266-nodemcu-sds011
Commits
30a87091
Unverified
Commit
30a87091
authored
2 years ago
by
Daniel Friesel
Browse files
Options
Downloads
Patches
Plain Diff
README: configuration needs to be written via (soft)uart
parent
87f3d0c1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+3
-3
3 additions, 3 deletions
README.md
with
3 additions
and
3 deletions
README.md
+
3
−
3
View file @
30a87091
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment