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

How to change or define this length?

Hi teams

After I follow this post.

https://devzone.nordicsemi.com/f/nordic-q-a/53909/sending-multiple-packets-at-every-interrupt-interval

And I modify my source code succeed.

The data was separate by 64 bytes?

How to change or define this "64" bytes in SDK15.2?

Please help me. Thank you.

Parents Reply
  • Hi JaxLiao, 

    Jax said:
    I don't use this method.

     I think you should have nrf_ble_gatt_att_mtu_periph_set to setting the ATT_MTU size for the next connection that is established as peripheral. 

    In e.g. SDK 15.2 in the ble_app_uart example you can set the ATT_MTU with the nrf_ble_gatt_att_mtu_periph_set() function:

    /**@brief Function for initializing the GATT library. */
    void gatt_init(void)
    {
        ret_code_t err_code;
    
        err_code = nrf_ble_gatt_init(&m_gatt, gatt_evt_handler);
        APP_ERROR_CHECK(err_code);
    
        err_code = nrf_ble_gatt_att_mtu_periph_set(&m_gatt, NRF_SDH_BLE_GATT_MAX_MTU_SIZE);
        APP_ERROR_CHECK(err_code);
    }

    -Amanda H.

Children
Related