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

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

Open
LucaWolf opened this issue Oct 4, 2019 · 2 comments
Open

Comments

@LucaWolf
Copy link
Contributor

LucaWolf commented Oct 4, 2019

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

@euantorano
Copy link
Owner

euantorano commented Oct 4, 2019 via email

@euantorano
Copy link
Owner

Some more information about listing Linux serial devices:

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

2 participants