Set MTU size in Zephyr

Hello,

I ran the throughput example ,but I found that setting the MTU size actually requires calling the bt_gatt_exchange_mtu function, which is different from sdk16.0 .

In sdk16.0 or other versions, I can set the MTU size by calling nrf_ble_gatt_att_mtu_periph_set()  and nrf_ble_gatt_att_mtu_central_set() .

Is there any way to automatically set the MTU size in Zephyr?

Best Regards,

Gray

Related