in my application, I use the
1) BluetoothLE.RegisterForBytes function of the BluetoothLE extension to enable notifications of a given characteristic in a given service
2) Byte values are then read in with the Bluetooth.BytesReceived callback
3) For disabling notifications, I use the Bluetooth.UnregisterForValues function with the same UUIDs for service and characteristic.
On the App Inventor application side, this works great.
However, I noticed, that the Bluetooth.UnregisterForValues function does not disable notifications on the GATT server side (BLE peripheral device).
So, in the background, the device continues emitting notifications. Since the callback on the App Inventor side has been unregistered, the notifications remain hidden on the app side.
However, regarding my BLE peripheral, this is not the behavior that I'd expect. I want notifications to be turned off on the peripheral.
Did anyone observe the same behavior? Is there a workaround? The BLE extension does not seem to provide other functions to write to the "Client Characteristic Configuration" descriptor associated with the characteristic that is notified.
Any help is appreciated,