Skip to content

feat(bluetooth): expose Trusted, Discoverable, and Pairable property … - #6

Merged
jwinarske merged 1 commit into
jwinarske:mainfrom
jaydon2020:main
Jul 12, 2026
Merged

feat(bluetooth): expose Trusted, Discoverable, and Pairable property …#6
jwinarske merged 1 commit into
jwinarske:mainfrom
jaydon2020:main

Conversation

@jaydon2020

Copy link
Copy Markdown
Contributor

Description

This PR introduces explicit property setters for Bluetooth Adapter and Device resources, enabling pairing and connection management flows to natively configure trust, pairability, and discoverability states.

Changes Included

bluez_native (C++ / Dart FFI architecture layers)

  • Adapter Properties (BlueZAdapter):
    • Added setDiscoverable(bool value) and setPairable(bool value) wrapper API endpoints.
    • Leverages the internal adapterSetPropertyBool hook to mutate Discoverable and Pairable states directly on the underlying org.bluez.Adapter1 D-Bus interface.
  • Device Properties (BlueZDevice):
    • Added setTrust(bool value) capability mapping.
    • Exposed a dedicated native C-bridge symbol bluez_device_set_trusted (bluez_bridge.cpp / .h) routing down to DeviceBridge::set_trusted(value).
    • Implemented the respective _deviceSetTrusted symbol lookup and corresponding deviceSetTrusted utility method within the Dart FFI bindings.dart layer.

@jwinarske
jwinarske merged commit 399d016 into jwinarske:main Jul 12, 2026
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants