commit | 41608a281538865e500144f23e27d45bd8765b30 | [log] [tgz] |
---|---|---|
author | Ani Ramakrishnan <aniramakri@google.com> | Wed Jul 17 14:34:33 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 17 14:34:33 2024 +0000 |
tree | f4f53a326cb8c928a6d0a6a38325f96893286219 | |
parent | f1ee471410b4b2ccf7b89419549b25fd896b49b9 [diff] |
pw_bluetooth_sapphire: Update semantics of `bredr.Advertise` The return value of `Advertise` currently tracks the lifetime of the service advertisement in the SDP database. Update `Advertise` to immediately return the set of registered services, or Error if the services couldn't be registered. Clients of `bredr.Profile` can use the `OnRevoke` event + `ConnectionReceiver` protocol to track the lifetime of the service advertisement in the SDP database. Update `bt-host` to return an empty list of services for each `bredr.Advertise` request. This will be correctly implemented in a follow up. Update `bt-rfcomm` to use `OnRevoke` as it's the only profile that relies on the `Advertise` return value. Also handle `OnRevoke` events made by profile FIDL clients. While here, improve test coverage for common profile registration scenarios. Update the Mock Piconet Server to correctly handle the OnRevoke event. File b/333456020 to track tech debt cleanup. Bug: b/330590954 Bug: b/327758656 Test: fx test bt-host-fidl-tests Test: fx test bt-rfcomm-tests Test: Manual, fx ota, pair device, stream audio / media controls Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1021128 API-Review: Marie Janssen <jamuraa@google.com> GitOrigin-RevId: 354f3ea4b724887bdfde2760f46a9cf5df583045 Change-Id: Ia3c12bd0580f577713a965ac85eec19cc95d46fd Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/221176 Pigweed-Auto-Submit: Faraaz Sareshwala <fsareshwala@google.com> Reviewed-by: Faraaz Sareshwala <fsareshwala@google.com> Commit-Queue: Jason Graffius <jgraff@google.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.