Android 13 improved the Bluetooth LE API.
To solve race conditions a new set of methods was added to split value from the BluetoothGattCharacteristic instance.
This PR migrates the library to the new API and solves related issues.
The PR contained an issue. As characteristic.setValue(...) was never used, the characteristic.getValue() returned null causing a NPE. It will be fixed with a different PR soon.
Android 13 improved the Bluetooth LE API. To solve race conditions a new set of methods was added to split value from the
BluetoothGattCharacteristic
instance.This PR migrates the library to the new API and solves related issues.