This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF52840 use long adver packet

Hi all,

nRF52840 and S140 support bluetooth 5. Bluetooth 5 expands 8.x adv data length. I test it on the ble_app_att_mtu_throughout example and add more 30 bytes data to the adv packet as bellow, but it returns an error. Is there anyother things need to do? Thanks.

static void advertising_data_set(void)
{
    uint8_t m_addl_adv_manuf_data[30] = {0};
		
	ble_advdata_manuf_data_t   manuf_data;	
	memset(m_addl_adv_manuf_data,0,sizeof(m_addl_adv_manuf_data));
	manuf_data.company_identifier = 0x2211;
    manuf_data.data.size          = sizeof(m_addl_adv_manuf_data);
    manuf_data.data.p_data        = m_addl_adv_manuf_data;
				
    ble_advdata_t const adv_data =
    {
        .name_type          = BLE_ADVDATA_FULL_NAME,
        .flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE,
        .include_appearance = false,
				.p_manuf_specific_data = &manuf_data,	
    };

    ret_code_t err_code = ble_advdata_set(&adv_data, NULL);
    APP_ERROR_CHECK(err_code);
}
Parents Reply Children
No Data
Related