Open peitschie opened 9 months ago
Introduced in API level 33: https://developer.android.com/reference/android/bluetooth/BluetoothGatt#writeCharacteristic(android.bluetooth.BluetoothGattCharacteristic,%20byte[],%20int)
The previous writeCharacteristic method has been deprecated, and now carries this warning:
writeCharacteristic
This method was deprecated in API level 33. Use BluetoothGatt#writeCharacteristic(BluetoothGattCharacteristic, byte[], int) as this is not memory safe because it relies on a BluetoothGattCharacteristic object whose underlying fields are subject to change outside this method.
A good example of this implementation is at https://github.com/capacitor-community/bluetooth-le/pull/572
Example code snippet in #997
Also relates to https://github.com/don/cordova-plugin-ble-central/issues/1006
Introduced in API level 33: https://developer.android.com/reference/android/bluetooth/BluetoothGatt#writeCharacteristic(android.bluetooth.BluetoothGattCharacteristic,%20byte[],%20int)
The previous
writeCharacteristic
method has been deprecated, and now carries this warning: