I am using this code to create and start transmission, but I cannot find a way to set the MACID to the internal NRF_FICR->DEVICEADDR values
My method with iBeacon is not working here
Please show how to modify this code:
struct bt_le_adv_param param =
BT_LE_ADV_PARAM_INIT(BT_LE_ADV_OPT_EXT_ADV |
BT_LE_ADV_OPT_CODED,
1600,
1600,
NULL);
err = bt_le_ext_adv_create(¶m, NULL, &adv);
if (err) {
printk("Failed to create advertiser (err %d)\n", err);
return err;
}
err = bt_le_ext_adv_set_data(adv, ad1, ARRAY_SIZE(ad1), NULL, 0);
if (err) {
printk("Failed to set advertising data (err %d)\n", err);
return err;
}
err = bt_le_ext_adv_start(adv, BT_LE_EXT_ADV_START_DEFAULT);
if (err) {
printk("Failed to start advertising (err %d)\n", err);
} else {
printk("Beacon started advertising on LE Coded PHY\n");
}