Martijn van Welie
Martijn van Welie
Ok, but why do you call clearServicesCache at all? I never use it. It is only needed when you do a firmware update where the services/characteristics change.... If you use...
Ah yes, you are right. You can only do clearServiceCache while being connected. So doing it before disconnecting would be the best place. Nonetheless, I still think it should work...
looks like this change was already done 3 years ago... https://android.googlesource.com/platform/packages/modules/Bluetooth/+/ab55e0f81c2a09db844cf8c16aef35722ce6ec41%5E%21/
oops...i meant 1 year ago....so might indeed be new to Android 13
It crossed my mind but no concrete plans. I have very little Flutter experience. But if somebody wants to do it I can support....
I think your issue is caused by this line: https://github.com/weliem/blessed-android/blob/master/blessed/src/main/java/com/welie/blessed/BluetoothPeripheralManager.java#L117 So when a connection to a Peripheral happens, it calls 'connect' back to the Central. Of course that shouldn't be...
Thank you for the extended writeup. I understand the issue I think and Android is messing stuff up here. I will think about any other workarounds although I don't see...
I added a method getBondState() to BluetoothCentral and released version 2.3.3. I don't think there is much more interesting stuff you can ask BluetoothDevice. What else do you need?
just released a new version that also offers createBond() and setPairingConfirmation()....2.3.5
closing this issue since requested functions are now available...