NimBLE: impossible to set MTU more then 256 bytes?

newsettler_AI
Posts: 121
Joined: Wed Apr 05, 2017 12:49 pm

NimBLE: impossible to set MTU more then 256 bytes?

Postby newsettler_AI » Tue Mar 29, 2022 6:13 pm

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 1902 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?

Who is online

Users browsing this forum: No registered users and 341 guests