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
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:
If these seems right to you please include the above changes in mainstream.
Thanks,
Luca