change BLE MTU

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
hinu_4327176
Level 3
Level 3

Hello,


Used in combination with WICED-Studio-6.4 (STM32F412 + CYW43438).
Is it possible to change the MTU size of BLE by modifying the following definition?


  wiced_bt_cfg_settings.gatt_cfg.max_attr_len
                                                   .max_mtu_size


Thank you.

0 Likes
1 Solution
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

Hi hinu_4327176​,

You can configure maximum size using GATT settings in wiced_bt_cfg.c. You can try using API wiced_bt_gatt_status_t wiced_bt_gatt_configure_mtu (uint16_t conn_id, uint16_t mtu) to configure ATT MTU for LE operation. Please refer /43xxx_Wi-Fi/libraries/drivers/bluetooth/include/wiced_bt_gatt.h for more info.

View solution in original post

1 Reply
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

Hi hinu_4327176​,

You can configure maximum size using GATT settings in wiced_bt_cfg.c. You can try using API wiced_bt_gatt_status_t wiced_bt_gatt_configure_mtu (uint16_t conn_id, uint16_t mtu) to configure ATT MTU for LE operation. Please refer /43xxx_Wi-Fi/libraries/drivers/bluetooth/include/wiced_bt_gatt.h for more info.