I want to pair a few smartphones with DA14586, and save informationa about paired devices. Further DA14586 has to check RSSI with them, via systick timer.
Please help, which examples or tutorial should I look?
There is not any example of tutorial in order to get the RSSI values when you are connected with a peer device. Let me describe you what you can do in order to get the RSSI values. It might be little bit tricky. So, when the device is in connected state, you should issue GAPC_GET_INFO_CMD with GAPC_GET_CON_RSSI operation in order to request the RSSI values. Since you have sent the GAPC_GET_INFO_CMD into the BLE stack, you will get a GAPC_CON_RSSI_IND, so you will have to handle this message. The values will be returned to rssi member of the struct gapc_con_rssi_ind.
Maybe I explained my idea no so clear. I don't want to measure rssi when device is connected to the DA14586. I want to pair the device once and safe device name or mac address in DA14586 memory. After that I want from DA14586 to measure RSSI from stored devices.
To be honest, again I am not able to understand what you are trying to accomplish. The ble_app_security example stores the bonding data in the SPI flash, so could you please let me know if want a similar functionality? Where do you want to save the device name or mac address? In the internal SPI flash of DA14586? The DA14586 will be acting as a central or as a peripheral?