commit | 9ec018be02aa436fccbf2105462432f226ffec48 | [log] [tgz] |
---|---|---|
author | Ani Ramakrishnan <aniramakri@google.com> | Wed Feb 14 23:33:40 2024 +0000 |
committer | Ani Ramakrishnan <aniramakri@google.com> | Mon Apr 22 22:32:55 2024 +0000 |
tree | 84d8c3eb00252e073f5b0e4fc070363863d3a982 | |
parent | aacbd8b1c8cac83c756f018003e6bd6791b43666 [diff] |
rust/bt-battery: Initial commit of the battery client - Define a `BatteryMonitor` which can be used to scan for compatible LE peers that support the BT Battery Service (BAS). - Provide a mechanism for connecting to a compatible peer. - Read and save the current battery level once a GATT connection is made. - Add test utilities for setting up a mock peer battery service. Test: cargo test Change-Id: I643af01012c0487e11b5fa09afd49b96616f045c Reviewed-on: https://bluetooth-review.git.corp.google.com/c/bluetooth/+/1660 Reviewed-by: Dayeong Lee <dayeonglee@google.com>
This is a repository for shared source libraries that can be useful for multiple Bluetooth stacks. Many of these are meant to be stack-agnostic and platform-agnostic and implement a useful part of a published Bluetooth specification.
It has been started as a repository for developing Rust crates but can be easily expanded to include libraries for other languages.