RequestMTU change

Hello,

I try the method RequestMTU to change to 40 bytes the BLE MTU.
I have a oneplus 6 with BLE vers 5.0.
I put in the event screen initialise requestMTU to 40
And i put the event when MTU changed.
But the MTU never change and stay to 20 bytes.
So please how to change the MTU?
Do you have an example.
Regards.

Julien

I found the solution. I have to put requestMTU method in when bl connected event, and fixe the MTU in my C program in the esp32 with the command: BLEDevice::setMTU(120); here 120 is my MTU size. All wokrs perfectly. But need 4.2 BLE version minimum. Mine is under BLE 5.0.
Julien

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.