Hello,
I have an application to develop in which Central device is scanning with use of whitelist if it is not connected but have saved peers. If peer list is empty, device shouldn't scan at all and if user will choose proximity pairing mode - it should scan for every peripheral with specified name.
I have implemented it basing on ble_app_hrs_c example and after connection to peripheral device, peer manager is returning an error NRF_ERROR_NOT_FOUND when callingpm_whitelist_set function. In function whitelist_load() from ble_app_hrs_c example it looks following:
So there is one peer and even pm_peer_count() function returns 1 but for some reason pm_whitelist_set() function has problem in finding it.
Could you help me in this case or provide some simple example of application where Central is switching between those 3 states (No scanning, scanning with whitelist, normal scan with filters)
Best regards