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

Support New extended Battery Service 1.1 #82

Open
mkuettner97 opened this issue Nov 21, 2024 · 0 comments
Open

Support New extended Battery Service 1.1 #82

mkuettner97 opened this issue Nov 21, 2024 · 0 comments

Comments

@mkuettner97
Copy link

Add support for new Battery service including current consumption ...

https://www.bluetooth.com/specifications/specs/bas-1-1/

See firmware for details and supported fields:

struct battery_level_status {
uint8_t flags;
uint16_t power_state;
/uint16_t identifier;
uint8_t battery_level;
uint8_t additional_status;
/
} attribute((packed));

// Battery Energy Status
struct battery_energy_status {
uint8_t flags;
//struct sfloat external_power_source;
struct sfloat voltage;
//struct sfloat available_energy;
struct sfloat available_capacity;
struct sfloat charge_rate;
//struct sfloat available_energy_last;
} attribute((packed));

// Battery Energy Status
struct battery_health_status {
uint8_t flags;
uint8_t battery_health_summary;
uint16_t cycle_count;
int8_t current_temperature;
//uint16_t deep_discharge_count;
} attribute((packed));

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

No branches or pull requests

1 participant