rust/bt-mcs: Support GATT reads on optional characteristics

Add builder methods to McsServerBuilder to enable optional non-OTS
features on the MCS/GMCS server.

Dynamically generate the GATT service definition based on the enabled
characteristics.

Dispatch incoming read requests for configured characteristics, and
return InvalidHandle for unconfigured optional handles.

Bug: b/540400364
Test: ./presubmit.sh
Change-Id: Ib614e74ed23ad3dd47dea02dee93628c5df6a798
Reviewed-on: https://bluetooth-review.googlesource.com/c/bluetooth/+/3840
2 files changed
tree: 2a523bcdd754725169b1ba069c47a3abdd72ef81
  1. .agents/
  2. docs/
  3. infra/
  4. rust/
  5. .gitignore
  6. AUTHORS
  7. CONTRIBUTING.md
  8. GEMINI.md
  9. LICENSE
  10. OWNERS
  11. PATENTS
  12. presubmit.sh
  13. README.md
README.md

Bluetooth Shared Libraries

What is this?

This is a repository for shared libraries and tools that can be useful for multiple Bluetooth stacks.

These tools and libraries are meant to be:

  • Stack-agnostic and platform-agnostic
  • Implement a useful subset of a published Bluetooth specification.

It has been started as a repository for developing Rust crates but can be easily expanded to include libraries and tools written in other languages.

What is this not?

It is not a full Bluetooth stack. Google has two officially open-source Bluetooth stacks:

Structure

  • rust - Rust Crates
  • docs - General documentation (documentation for each library/tool is included in their directories)