Skip to content

fix disconnect and device names for bluez 5.87 - #1

Merged
atvcaptain merged 1 commit into
oe-alliance-plugins:mainfrom
WXbet:bluez-5.87
Aug 22, 2026
Merged

atvcaptain merged 1 commit into
oe-alliance-plugins:mainfrom
WXbet:bluez-5.87

Conversation

@WXbet

@WXbet WXbet commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Two things that update for bluz 5.87 did not cover, found by comparing every expect() string against the 5.87 sources.

The disconnect message was renamed after 5.70, Successful disconnected to Disconnection successful, so disconnect() always returned False - the device did disconnect, but the plugin reported a failure. Both spellings are kept so the plugin still works against older bluez.

print_device gained a branch in 5.87 that wraps devices advertising as non-discoverable in COLOR_BOLDGRAY:

if (!(flags[0] & (BT_AD_FLAG_LIMITED | BT_AD_FLAG_GENERAL))) {
        bt_shell_printf("%s%s%s" COLOR_BOLDGRAY "Device %s %s" COLOR_OFF "\n", ...);

The block list catches [NEW] style lines but not this one, so the escapes ended up in the parsed name - the normal case for a BLE remote. The escapes are now stripped before splitting; the existing filter is unaffected.

The same two fixes are in oe-alliance-plugins/BTDevicesManager#1, which additionally needed the prompt change that this plugin already has.

The disconnect message was renamed after 5.70, so disconnecting always
looked like it failed. And 5.87 wraps devices that advertise as
non-discoverable in color escapes that ended up in the name.
@sonarqubecloud

Copy link
Copy Markdown

@atvcaptain
atvcaptain merged commit 1ef6cc0 into oe-alliance-plugins:main Aug 22, 2026
2 checks passed
@WXbet
WXbet deleted the bluez-5.87 branch August 22, 2026 17:48
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