Page 1 of 1

NimBLE: impossible to set MTU more then 256 bytes?

Posted: Tue Mar 29, 2022 6:13 pm
by newsettler_AI
Hello, I'm trying to set MTU as max as possible (or at least 500 bytes) with android app nRF Connect:
nrfconnect.jpg
nrfconnect.jpg (29.75 KiB) Viewed 1746 times
But seems in NimBLE max mtu limitted to 256.

Tested in default examlpe bluetooth/nimble/blehr:

Code: Select all

I (35182) NimBLE: mtu update event; conn_handle=0 mtu=256
And in bluetooth/bluedroid/ble/gatt_server example this is possible:

Code: Select all

I (30086) GATTS_DEMO: ESP_GATTS_MTU_EVT, MTU 500
Does this is internal limitation of NimBLE stack and need use Bluedroid instead if I need large MTU?