Hi,
I have used one of the sample and was playing around a write characteristic. I changed the MTU size to 65 bytes and then tried to send same data from the app to the board/firmware.
The total number of bytes i received on the firmware is 62 (3 bytes less). I then tried same thing with default MTU.
On the serial output, I can the following line printed when the BLE connection is established:
Updated MTU: TX: 23 RX: 23 bytes
But the max data I can send it 20 bytes. If I try to send 23 bytes, again, the 3 bytes are lost.
Same with 65 bytes:
Updated MTU: TX: 65 RX: 65 bytes
If I send 65 bytes, I only see 63 on the serial output.
My write handler on the firmware looks something like this. I have highlighted the len param.