Linux implementation won't list the Bluetooth related serial ports
LucaWolf opened this issue · comments
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
That looks about right, my Linux machine doesn’t have Bluetooth so I’ll have to take your word that it works 😂
…On Fri, 4 Oct 2019, at 11:40, LucaWolf wrote:
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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#25?email_source=notifications&email_token=AAFW24KFT4K4WKGPX4NYCQTQM4MQVA5CNFSM4I5OEWQKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HPUQAYQ>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAFW24NAUE3XJ2IEQ5FP2EDQM4MQVANCNFSM4I5OEWQA>.
Some more information about listing Linux serial devices: