i am using ble_app_multilink_central example. is this enough to get rssi value.
i am using ble_app_multilink_central example. is this enough to get rssi value.
Hi,
To be able to get RSSI from nearby devices, the devices will have to transmitt something that your central can receive. If you setup the phone to do BLE advertising like a peripheral device, you can get the RSSI from the advertising report that you receive with the BLE_GAP_EVT_ADV_REPORT
event in the ble_evt_handler
in the central examples. You can print the RSSI value using the following line:
NRF_LOG_INFO("RSSI: %d", p_ble_evt->evt.gap_evt.params.adv_report.rssi);
Best regards,
Jørgen
thank you very much jorgen