I'm trying to rename my device using s130, but the name doesn't get applied.
I went back to the "roots", ie the HRS sample.
Just before entering the loop, I add a name change:
advertising_start();
ble_gap_conn_sec_mode_t sec_mode;
BLE_GAP_CONN_SEC_MODE_SET_OPEN(&sec_mode);
char *name = "New name";
err_code = sd_ble_gap_device_name_set(&sec_mode,
(const uint8_t *) name,
strlen(name));
APP_ERROR_CHECK(err_code);
// Enter main loop.
for (;;)
{
if (NRF_LOG_PROCESS() == false)
{
power_manage();
}
}
And this name doesn't get applied, but it doesn't return an error code either.