I know there is a limitation of 23 bytes in Android BLE.
There are several stackoverflow questions about sending more than 20 bytes.
But my question is, how to read more than 20 bytes with Android BLE.
Yes, it can be easily done with manipulating MTU, but Kitkat does not support requestMTU you know :(
With naive implementation,
override fun onCharacteristicRead(gatt: BluetoothGatt?, characteristic: BluetoothGattCharacteristic?, status: Int) {
new String(characteristic?.value)
}
this only produce first 23 bytes.