Repository navigation
[PW_SID:1181777] Add Role property to org.bluez.Bearer.LE1 - #2637
BluezTestBot wants to merge 3 commits into
Conversation
This adds Role property to org.bluez.Bearer.LE1 which indicates whether the remote device is the central or the peripheral of the current LE connection, so applications can tell a central that connected to the adapter from a peripheral the adapter connected to. Assisted-by: Claude:claude-opus-5.5
This implements Role property for the LE bearer using the initiator flag of the Device Connected event, which the kernel sets when the adapter created the connection as central, and emits PropertiesChanged along with Connected. Assisted-by: Claude:claude-opus-5.5
This prints the Role property of the LE bearer with the likes of info
command:
bluetoothctl> info <addr>
...
LE.Connected: yes
LE.Connectable: yes
LE.Role: central
Assisted-by: Claude:claude-opus-5.5
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 8 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
CheckPatch |
|
GitLint |
|
BuildEll |
|
BluezMake |
|
MakeCheck |
|
MakeDistcheck |
|
CheckValgrind |
|
CheckSmatch |
|
bluezmakeextell |
|
TestFunctional |
|
IncrementalBuild |
|
ScanBuild |
This adds Role property to org.bluez.Bearer.LE1 which indicates whether
the remote device is the central or the peripheral of the current LE
connection, so applications can tell a central that connected to the
adapter from a peripheral the adapter connected to.
Assisted-by: Claude:claude-opus-5.5
doc/org.bluez.Bearer.LE.rst | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)