This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MTU Update

Hi,

I am trying to update the MTU between the central and peripheral to the maximum MTU.

at the connection interrupt from the central side I added 

    err_code = sd_ble_gattc_exchange_mtu_request(p_ble_evt->evt.gap_evt.conn_handle, 247);
    APP_ERROR_CHECK(err_code);

but I got error 7, Invalid Parameter !! what parameter could be wrong !?

In my peripheral side I have the following code in the ble event handler:

	case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST:
	  {
	    sd_ble_gatts_exchange_mtu_reply(m_conn_handle, NRF_SDH_BLE_GATT_MAX_MTU_SIZE);
	    
	  }break;

and in both sides I have the gatt_evt_handler() function.

what I am doing wrong !?

Please Help

BR

JK

Parents Reply Children
No Data
Related