Dear Nordic Team,
Thanks for supporting.
If any possible to add manufacturer data in example experimental_ble_app_blinky in advertisement. i am using SDk11 and my hardware is PCA10028. Please support.
Dear Nordic Team,
Thanks for supporting.
If any possible to add manufacturer data in example experimental_ble_app_blinky in advertisement. i am using SDk11 and my hardware is PCA10028. Please support.
Murugan. I tried adding manufacturer data to the ble_app_blinky example in SDK 11, and it seems to be quite straight forward.
in advertising_init(void) i added:
ble_advdata_manuf_data_t adv_manuf_data;
uint8_t adv_manuf_data_data[] = "Data";
adv_manuf_data.data.p_data = adv_manuf_data_data;
adv_manuf_data.data.size = sizeof(adv_manuf_data_data);
adv_manuf_data.company_identifier = 0x0059; //Nordic's company ID
advdata.p_manuf_specific_data = &adv_manuf_data;
And it seems to be working just fine.
The 16-bit company ID (0x0059), is a unique 16-bit value assigned to Bluetooth SIG members. It is not allowed to broadcast a custom company ID value without being a member.
Happy to help :)
Happy to help :)
hi Joakim Jakabsen
i am using sdk 14,nRF52 dk and trying add manufacturer data in sdk14 example.
as suggested by you in above reply i have added this to advertising .so advertising_ init()
{
ret_code_t err_code;
ble_advertising_init_t init;
ble_advdata_manuf_data_t adv_manuf_data;
uint8_t adv_manuf_data_data[] = "Data";
adv_manuf_data.data.p_data = adv_manuf_data_data;
adv_manuf_data.data.size = sizeof(adv_manuf_data_data);
adv_manuf_data.company_identifier = 0x0059; //Nordic's company ID
memset(&init, 0, sizeof(init));
init.advdata.name_type = BLE_ADVDATA_FULL_NAME;
init.advdata.include_appearance = true;
init.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
init.advdata.p_manuf_specific_data = &adv_manuf_data;
init.advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
init.advdata.uuids_complete.p_uuids = m_adv_uuids;
init.config.ble_adv_fast_enabled = true;
init.config.ble_adv_fast_interval = APP_ADV_INTERVAL;
init.config.ble_adv_fast_timeout = APP_ADV_TIMEOUT_IN_SECONDS;
init.evt_handler = on_adv_evt;
err_code = ble_advertising_init(&m_advertising, &init);
APP_ERROR_CHECK(err_code);
ble_advertising_conn_cfg_tag_set(&m_advertising, APP_BLE_CONN_CFG_TAG);
}
hardware is pca10040.i am getting return error code 12(invalid size) .please support
Hi!
I can see that you have made a new thread with this issue.
https://devzone.nordicsemi.com/f/nordic-q-a/32640/add-manufacturer-data
Please try to keep the discussion in that thread.
Cheers.