I have a custom board with a nrf5340. I flashed two of them with two different names and opened up the nrf Connect app on iOS. I was expecting to see them side by side but I see what looks like a single device with the name switching back and forth.
I have a custom board with a nrf5340. I flashed two of them with two different names and opened up the nrf Connect app on iOS. I was expecting to see them side by side but I see what looks like a single device with the name switching back and forth.
Hi,
Have you somehow ended up with both boards advertising using the same address?
A sniffer trace would reveal all details about what is happening over-the-air.
Regards,
Terje
It was my mistake. I took this code from one of the DevAcademy lessons I think:
bt_addr_le_t addr;
err = bt_addr_le_from_str("FF:EE:DD:CC:BB:AA", "random", &addr);
if (err) {
LOG_ERR("Invalid BT address (err %d)", err);
return err;
} else {
LOG_DBG("BT address set");
}
err = bt_id_create(&addr, NULL);
if (err < 0) {
LOG_ERR("Creating new ID failed (err %d)", err);
return err;
} else {
LOG_DBG("New ID created with index %d", err);
}
I just commented it out and was fine.
It was my mistake. I took this code from one of the DevAcademy lessons I think:
bt_addr_le_t addr;
err = bt_addr_le_from_str("FF:EE:DD:CC:BB:AA", "random", &addr);
if (err) {
LOG_ERR("Invalid BT address (err %d)", err);
return err;
} else {
LOG_DBG("BT address set");
}
err = bt_id_create(&addr, NULL);
if (err < 0) {
LOG_ERR("Creating new ID failed (err %d)", err);
return err;
} else {
LOG_DBG("New ID created with index %d", err);
}
I just commented it out and was fine.