-
Notifications
You must be signed in to change notification settings - Fork 16
modules: power: add extra battery state to message #400
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
2d8635c
to
1e8f41c
Compare
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.
Thanks for adding this!
I left a couple of comments on the type of zbus observer to use. I think listener is a good fit for this use case.
b4ebb4e
to
63e4ea9
Compare
Add extra battery state information to the power module message: - Voltage - Whether the battery is charging or not This data is generally useful to get the full picture of battery state. For testing, a new shell command is now available to trigger a power sample: ``` uart:~$ att_power sample Requesting battery sample... [00:01:41.007,843] <inf> power: Battery state of charge: 100.00% [00:01:41.007,873] <inf> power: Battery voltage: 4.19V [00:01:41.007,904] <inf> power: Charging: No ``` Signed-off-by: Gillian Minnehan <[email protected]>
63e4ea9
to
89a9217
Compare
|
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.
Thanks!
@gminn lgtm, merging! |
Add extra battery state information to the power module message:
This data is generally useful to get the full picture of battery state.
For testing, a new shell command is now available to trigger a power
sample:
Signed-off-by: Gillian Minnehan [email protected]