It is a little bit confusing that, in the CySmart_Dongle example for BLE KIT, inside CySmt_TransportLayer.h,
/* Both UART RX & TX buffers are set to maximum 5K with assumption that L2CAP MTU will be with-in this limit */
However, UART_UART_TX_BUFFER_SIZE is defined as 550u, and not hexadecimal, which is different with 5K.
So, how big on earth is the maximum of the MAX_PAYLOAD_SIZE?
that's a typo in the comment.
it's not 5k. it is 550u.
We set the L2CAp MTU as 512 in the BLE component and including the headers it would be more than 512.
So we set a value 550.