Re: How to increase MTU size on GATT - Server
Posted: Tue Jan 04, 2022 7:35 am
Hi Chegewara & WiFive,
Now what we implement in server’s firmware, you can see that in the attached “main.c” line 28-29 & line 351-356. Actually this main.c is of basic example “onoff_server”.
Are we correct?
As GATT_MAX_MTU_SIZE is 517 bytes. In server’s main.c we included header file of “esp_gattc_api”, “esp_gatt_common_api” & implement function esp_ble_gatt_set_local_mtu(500) in app_main(). So, by doing this MTU size set to 500. Why App response shows it 69?
Best Regards,
Shariq Hussain
Now what we implement in server’s firmware, you can see that in the attached “main.c” line 28-29 & line 351-356. Actually this main.c is of basic example “onoff_server”.
Are we correct?
As GATT_MAX_MTU_SIZE is 517 bytes. In server’s main.c we included header file of “esp_gattc_api”, “esp_gatt_common_api” & implement function esp_ble_gatt_set_local_mtu(500) in app_main(). So, by doing this MTU size set to 500. Why App response shows it 69?
Best Regards,
Shariq Hussain