bluetooth
bluetooth copied to clipboard
BLE watch often disconnect just after a sucessful connect
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:
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
"Pairing Not Supported"
The bluetooth package does not currently support pairing, hence the error.
Please see https://github.com/tinygo-org/bluetooth/issues/242