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
I have a BLE device that I've successfully scanned for and connected to in a simple diagnostic SwiftUI app, now I'm trying to talk to it from a command line app written in Go that will ultimately run on Linux.
I can scan for my device and read the advertised manufacturer data but when I try to connect (which should take no longer than 4-5 seconds) the code just sits there and never responds.
I tried those . I've done more testing and the problem seems to be only when running on Linux . Runs fine on Mac, in fact:
1: Run on linux, get unable to connect - Times out - bluetooth: failed to connect: le-connection-abort-by-local
2: Run same code on MacOS - The occasional connection failure but connects and I can read services, characteristics and read data
3: Run on linux again - Works fine.
After a while Linux stops working and I have to run it on the mac again
I suspect this is something to do with Bluez so feel free to close this ticket unless anyone out there has a clue why, otherwise I'll go to Stack Overflow :)
I have a BLE device that I've successfully scanned for and connected to in a simple diagnostic SwiftUI app, now I'm trying to talk to it from a command line app written in Go that will ultimately run on Linux.
I can scan for my device and read the advertised manufacturer data but when I try to connect (which should take no longer than 4-5 seconds) the code just sits there and never responds.
I've created a minimal example of what I'm doing:
When I run this the only output is:
Am I doing something fundamentally wrong?
I've also successfully connected to the same device using Rust/btleplug so I'm confident the device works.
The text was updated successfully, but these errors were encountered: