Send a single beacon with extended size

Hi, 

I am sending 20 bytes of data in a beacon format. These are fit into m_beacon_info[2] to m_beacon_info[21] defined in ble_app_uart code from nordic SDK: 

I send beacon using this code:   

------------------------------------------------------------------------------------------------------------------------------------------------------

manuf_specific_data.data.p_data = (uint8_t *) m_beacon_info;
advdata.p_manuf_specific_data = &manuf_specific_data;

err_code = ble_advdata_encode(&advdata, m_adv_data.adv_data.p_data, &m_adv_data.adv_data.len);
APP_ERROR_CHECK(err_code);

err_code = sd_ble_gap_adv_set_configure(&m_adv_handle, &m_adv_data, &m_adv_params);
APP_ERROR_CHECK(err_code);

advertising_start();
nrf_delay_ms(20);
advertising_stop();

------------------------------------------------------------------------------------------------------------------------------------------------------

Is it possible to extend the size of the beacon, so that instead of sending 20 bytes, I send 30 or 40 bytes in one single beacon without sending multiple beacons that contain 20 bytes of data?

Thanks

Parents Reply Children
No Data
Related