NordicSemiconductor / Android-nRF-Toolbox

The nRF Toolbox is a container app that stores your Nordic Semiconductor apps for Bluetooth Low Energy in one location.
https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Toolbox
BSD 3-Clause "New" or "Revised" License
1.07k stars 461 forks source link

Sending data to bonded devices with Service Changed char does not work on 2.3.0 o Android 6 or lower #27

Closed philips77 closed 7 years ago

philips77 commented 7 years ago

The issue is related to https://github.com/NordicSemiconductor/Android-nRF-Toolbox/blob/master/app/src/main/java/no/nordicsemi/android/nrftoolbox/profile/BleManager.java#L391. The ensureServiceChangedEnabled() method is called by ``nextRequest()which sets themOperationInProgressflag to *true*. Adding another request in the line mentioned above is an error, as it will not be processed. InsteadinternalEnableNotifications(...)``` should be called.