Central and peripheral is pairing and bonded. Central scanning with whitelist, if Slave is not online, master scan with whitelist will enter error when more than 30 seconds.
SD is 7.0.1 S132,SDK is 16.0.0
Central and peripheral is pairing and bonded. Central scanning with whitelist, if Slave is not online, master scan with whitelist will enter error when more than 30 seconds.
SD is 7.0.1 S132,SDK is 16.0.0
Dear Einar,
Thanks for your reply. I refer to hrs_c demo code. Error code as below. The second APP_ERROR_CHECK(ret);
static void whitelist_load() { ret_code_t ret; pm_peer_id_t peers[8]; uint32_t peer_cnt; memset(peers, PM_PEER_ID_INVALID, sizeof(peers)); peer_cnt = (sizeof(peers) / sizeof(pm_peer_id_t)); // Load all peers from flash and whitelist them. peer_list_get(peers, &peer_cnt); ret = pm_whitelist_set(peers, peer_cnt); APP_ERROR_CHECK(ret); // Setup the device identies list. // Some SoftDevices do not support this feature. ret = pm_device_identities_list_set(peers, peer_cnt); if (ret != NRF_ERROR_NOT_SUPPORTED) { APP_ERROR_CHECK(ret); } }
Dear Einar,
Thanks for your reply. I refer to hrs_c demo code. Error code as below. The second APP_ERROR_CHECK(ret);
static void whitelist_load() { ret_code_t ret; pm_peer_id_t peers[8]; uint32_t peer_cnt; memset(peers, PM_PEER_ID_INVALID, sizeof(peers)); peer_cnt = (sizeof(peers) / sizeof(pm_peer_id_t)); // Load all peers from flash and whitelist them. peer_list_get(peers, &peer_cnt); ret = pm_whitelist_set(peers, peer_cnt); APP_ERROR_CHECK(ret); // Setup the device identies list. // Some SoftDevices do not support this feature. ret = pm_device_identities_list_set(peers, peer_cnt); if (ret != NRF_ERROR_NOT_SUPPORTED) { APP_ERROR_CHECK(ret); } }
Hi,
OK, so pm_device_identities_list_set() returns an error when you start to scan with a whitelist? What is the error code? What do you test with? The HRS example? If you are using any modifications, can you share your code?
ERROR 12804 [Unknown error code]. I porting hrs_c and hrs demo code to nus_c and nus code. Paring and bond is OK. Whitelist also OK, but if slave is offline, when master scan over 30seconds is enter error. My code is in Office, I can get it tomorrow.
Hi,
Error 12804 is probably BLE_ERROR_GAP_DEVICE_IDENTITIES_IN_USE. which function call returns that?