You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How do I connect to another bluetooth adapter (ie, hci1 instead of hci0)? #117
Activity
kerneis-anssi commentedon Jun 19, 2025
I don't think the API supports it currently. If I read the code correctly, you'd need to set
dev.idto the index of the bluetooth device here:ble/linux/device.go
Line 26 in 8c5522f
It's unclear to me if the index of bluetooth devices is deterministic, and how to figure it out. go-ble picks the first one it finds:
ble/linux/hci/socket/socket.go
Line 63 in 8c5522f