Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bluetoothctl parser failing to parse controllers #627

Open
tzeikob opened this issue Jan 3, 2025 · 1 comment
Open

Fix bluetoothctl parser failing to parse controllers #627

tzeikob opened this issue Jan 3, 2025 · 1 comment

Comments

@tzeikob
Copy link
Contributor

tzeikob commented Jan 3, 2025

Controller schema seems to be broken when parsing the default controller.

jc parser: ver. 1.25.4
python: ver. 3.13.1

$ bluetoothctl show
Controller CC:52:AF:17:6A:E4 (public)
	Manufacturer: 0x000f (15)
	Version: 0x05 (5)
	Name: starbase
	Alias: starbase
	Class: 0x006c010c (7078156)
	Powered: yes
	PowerState: on
	Discoverable: no
	DiscoverableTimeout: 0x000000b4 (180)
	Pairable: no
	UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
	UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
	UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: Handsfree Audio Gateway   (0000111f-0000-1000-8000-00805f9b34fb)
	Modalias: usb:v1D6Bp0246d054F
	Discovering: no

$ bluetoothctl show | jc --bluetoothctl | jq .
[
  {
    "manufacturer": "0x000f (15)",
    "version": "0x05 (5)",
    "name": "starbase",
    "is_default": false,
    "is_public": true,
    "is_random": false,
    "address": "CC:52:AF:17:6A:E4",
    "alias": "starbase",
    "class": "0x006c010c (7078156)",
    "powered": "yes",
    "discoverable": "",
    "discoverable_timeout": "",
    "pairable": "",
    "modalias": "",
    "discovering": "",
    "uuids": []
  }
]
@tzeikob
Copy link
Contributor Author

tzeikob commented Jan 3, 2025

@kellyjonbrazil I'm on it!

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

No branches or pull requests

1 participant