Skip to content

Linux implementation won't list the Bluetooth related serial ports #25

@LucaWolf

Description

@LucaWolf

At least on my Fedora machine, the serial ports created by the Bluetooth driver are not listed.

I have enhanced my local copy (list_serialports_linux.nim) with:

let fullDevicePath = "/sys/class/tty" / filename / "device" # serial have this path
let fullDeviceRFPath = "/sys/class/tty" / filename / "dev" # bluetooth
...
if subsystem != "platform":
      result = true 
elif fileExists(fullDeviceRFPath):
  result = true
else:
  result = false

If these seems right to you please include the above changes in mainstream.

Thanks,
Luca

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions