Skip to content

[BUG?] Bluetoothctl Not Parsing Correctly #419

Closed
@Stetsed

Description

@Stetsed

I am currently trying to integrate JC into my workflow due to it allow me to much easier create widgets with JSON data. I'm trying to parse the bluetoothctl devices command but it isn't filling in most of the classes. And even when I use bluetooth info MAC and then parse that it doesn't get it either while the command does output it.

❯ bluetoothctl info DF:1C:C3:B4:1A:1F | jc --bluetoothctl -p
[
  {
    "name": "M585/M590",
    "is_public": false,
    "address": "DF:1C:C3:B4:1A:1F",
    "alias": "M585/M590",
    "class": "",
    "icon": "",
    "paired": "",
    "bonded": "",
    "trusted": "",
    "blocked": "",
    "connected": "",
    "legacy_pairing": "",
    "rssi": 0,
    "txpower": 0,
    "uuids": []
  }
]

~ 
❯ bluetoothctl info DF:1C:C3:B4:1A:1F
Device DF:1C:C3:B4:1A:1F (random)
	Name: M585/M590
	Alias: M585/M590
	Appearance: 0x03c2
	Icon: input-mouse
	Paired: yes
	Bonded: yes
	Trusted: no
	Blocked: no
	Connected: yes
	LegacyPairing: no
	UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
	UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
	UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
	UUID: Battery Service           (0000180f-0000-1000-8000-00805f9b34fb)
	UUID: Human Interface Device    (00001812-0000-1000-8000-00805f9b34fb)
	UUID: Vendor specific           (00010000-0000-1000-8000-011f2000046d)
	Modalias: usb:v046DpB01Bd0011
	Battery Percentage: 0x64 (100)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions