rust/bt-battery: Subscribe to Battery Level characteristic notifications

- The battery level characteristic is a mandatory characteristic
  published by the battery service. Support for notifications on
  this characteristic are optional but commonly provided as it is
  the main mechanism for receiving "push" style updates of the
  battery level.
- Subscribe to notifications on the battery level characteristic and
  provide updates as a stream of battery events.

Test: cargo test

Change-Id: Ic0caa8d8a3ae7425af829f157237a84d69a2f436
Reviewed-on: https://bluetooth-review.git.corp.google.com/c/bluetooth/+/1700
Reviewed-by: Dayeong Lee <dayeonglee@google.com>
5 files changed
tree: 2ec8f31c6c373b124facf91639820e2a5aa9d3b2
  1. docs/
  2. rust/
  3. .gitignore
  4. AUTHORS
  5. CONTRIBUTING.md
  6. LICENSE
  7. OWNERS
  8. PATENTS
  9. README.md
README.md

Bluetooth Shared Libraries

What is this?

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.

Structure

  • rust - Rust Crates