I have an Android GATT server with the following code:
// Data length = 24 bytes
void onNewData(GattServerDelegate gattServer, byte[] data) { // data = 24 bytes
characteristic.setValue(data);
// MTU = 23
gattServer.notifyCharacteristicChanged(mNotifyDevice, characteristic, false);
}
Because the data is longer than the MTU size, the client only receives part of the message. Could I:
- Request a new MTU from the server side? or,
- Split the data in two packets?