Open ClaeysJoke opened 4 years ago
Update: if I remove "ble.startnotification", I get the feedback that it is disconnected from "onDisconnectedState" but not from "onDisconnected"
The device probably expects an initialization message after you connect. If there's no documentation, try using the manufacturers app and sniffing the bluetooth communication to see what it's doing.
@ClaeysJoke,
I found that with my devices (heart rate monitors), when I used ble.connect
it dropped the connection instantly. However, when I use ble.autoConnect
, it keeps the connection open and I don't get the instant disconnect.
I'm not sure if this is the correct way to do it but it works for me.
@ClaeysJoke,
I found that with my devices (heart rate monitors), when I used
ble.connect
it dropped the connection instantly. However, when I useble.autoConnect
, it keeps the connection open and I don't get the instant disconnect.I'm not sure if this is the correct way to do it but it works for me.
I have exactly the same problem, but only on Android. iOS works with "normal" connect perfectly.