Hi,
I want to use the whole payload of the advertising packet. I decided to use the manufacturer specific data. BUt I cant´use the whole payload by myself. I get this payload: 11 00 is "my" test company identifier 1-5 is my payload. I can´t find the row to change the first bytes 1-5. (02 01 06 08 ff)
this is my init function:
static void advertising_init(void)
{
uint32_t err_code;
ble_advdata_t advdata;
ble_advdata_manuf_data_t manuf_data;
uint8_t m_addl_adv_manuf_data[5] = {1,2,3,4,5};
// Build and set advertising data
memset(&advdata, 0, sizeof(advdata));
advdata.name_type = BLE_ADVDATA_NO_NAME;
advdata.include_appearance = false;
advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
ble_adv_modes_config_t options = {0};
options.ble_adv_fast_enabled = BLE_ADV_FAST_ENABLED;
options.ble_adv_fast_interval = APP_ADV_INTERVAL;
options.ble_adv_fast_timeout = APP_ADV_TIMEOUT_IN_SECONDS;
manuf_data.company_identifier = 0x11;
manuf_data.data.size = 5;
manuf_data.data.p_data = m_addl_adv_manuf_data;
advdata.p_manuf_specific_data = &manuf_data;
err_code = ble_advertising_init(&advdata, NULL, &options, on_adv_evt, NULL);
APP_ERROR_CHECK(err_code);
}
Perhaps anyone give me a hint for using the whole paylaod of an advertising packet?