Skip to content
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

Display battery usage on bluetooth radio screen #848

Closed
wants to merge 2 commits into from

Conversation

gabek
Copy link

@gabek gabek commented Aug 7, 2024

What changed?

This change adds the battery level to the bluetooth radio status screen. The discussion came up in #837. Closes #847

Why did it change?

I felt the battery status should be surfaced more conveniently, since it is a common value to be looking at.

Screenshots/Videos (when applicable)

Checklist

  • My code adheres to the project's coding and style guidelines.
  • I have conducted a self-review of my code.
  • I have commented my code, particularly in complex areas.
  • I have made corresponding changes to the documentation.
  • I have tested the change to ensure that it works as intended.

import Foundation
import MeshtasticProtobufs

class BatteryHelper {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be an enum, since we won't ever need to instantiate an instance of BatteryHelper

@72A12F4E
Copy link
Contributor

LGTM overall

@gabek gabek requested a review from 72A12F4E August 14, 2024 22:54
@garthvh
Copy link
Member

garthvh commented Aug 25, 2024

I would rather use the existing battery level indicator that is on the node list, under the circle. There is also a new lastest device metrics extension on node that you can use to get the battery data.

@garthvh
Copy link
Member

garthvh commented Aug 26, 2024

Battery indicator from node details has been added to the bluetooth screen

@garthvh garthvh closed this Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀 [Feature Request]: Add battery level to the bluetooth radio connect view
3 participants