How to set mtu for an app?

Hello.
Beginner making an application to communicate with esp32-c3 super mini.
We are implementing the function using the ble extension function.
c3 is being implemented as Arduino and has increased mtu to 100 and it works well after checking with getmtu().
The application also set mtu to 100 through the request mtu block, and when I read the value using the mtuchanged block, it turned out to be 100 well. But that’s where the problem came from.
The application sent a packet about 40 to 50 bytes in size to c3, and in c3, I only received about 23 bytes, and the rest disappeared. Can you tell me what the problem is?
I want to deliver about 50 bytes to c3 at a time.

If you need anything or have any questions, please feel free to contact us.
Please help me

Hi dear,

Welcome to the Kodular community!

Do both devices support Bluetooth 4.2 or higher?

Source:

Useful topic:

“I am using ESP32-C3 (Bluetooth 5.0) and my smartphone is [samsung galaxy note10+ 5g] (Bluetooth 5,0). Both devices support Bluetooth 4.2 or higher, but data is still being truncated at 23 bytes.”

Have you tried following what was suggested in the topic I recommended?

I solved the problem with the solution you gave me, thank you so much.