bluetooth icon indicating copy to clipboard operation
bluetooth copied to clipboard

BLE watch often disconnect just after a sucessful connect

Open Jo-Blade opened this issue 9 months ago • 1 comments

I am writing a BLE central for a BLE watch. Sometimes the program works perfectly but sometimes the watch disconnect just before the service discovery begins.

I didn't find a way to detect when the disconnect occurs so my program crashed when it happens (it does not trigger adapter.SetConnectHandler() ).

I have just seen in Wireshark that when I run the program and a disconnect happens, I have the following messages:

Image

And when everything works fine I have no "SMP" protocol at all in wireshark.

I don't understand what the problem is.

edit: My computer is x86/64 Linux

Thank you in advance

Jo-Blade avatar Feb 21 '25 13:02 Jo-Blade

"Pairing Not Supported"

The bluetooth package does not currently support pairing, hence the error.

Please see https://github.com/tinygo-org/bluetooth/issues/242

deadprogram avatar Feb 24 '25 13:02 deadprogram