-
Notifications
You must be signed in to change notification settings - Fork 130
Include PMS particle count 0.5 and 5.0 #258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Payload already print out on toString() measurement
src/AgValue.cpp
Outdated
utils::isValidPm03Count(_pm_05_pc[1].update.avg)) { | ||
float avg = (_pm_05_pc[0].update.avg + _pm_05_pc[1].update.avg) / 2.0f; | ||
pms["pm005Count"] = ag.round2(avg); | ||
pms["channels"]["1"]["pm005Count"] = ag.round2(_pm_05_pc[0].update.avg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
005 vs 05, I think we should align this to avoid confusion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just follow the existing formatting. Is it better if we use pms05Count
and pms50Count
or pms5Count
? If yes, shouldn't we need to update other field too then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes
pm25Count
topm02Count
pm05Count
topm50Count
Detail on local-server.md
@@ -136,13 +136,27 @@ int PMS5003::getPm03ParticleCount(void) { | |||
*/ | |||
int PMS5003::getPm01ParticleCount(void) { return pms.getCount1_0(); } | |||
|
|||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think such descriptions don't provide any value, the same information is already included in the method signature. Propose to gradually remove these.
Changes
New measurements
0.5
and5.0
. Except5.0
only for indoor monitor.New field on json payload
pm005Count
pm50Count
Updated field on json payload
pm02Count
See
docs/local-server.md
for more detail of each field above