Terminate current connection handle based on advertisement rssi of peripheral in central Devicddddd

Hai Team,


I am working on NRF52840 based on the BLE Connection handle

Here I am using the ble_app_multilink_central example of SDK 

case BLE_GAP_EVT_ADV_REPORT:
{
uint32_t rssi_temp ;
rssi_temp = p_ble_evt->evt.gap_evt.params.adv_report.rssi;

if((rssi_temp>= -75))
{
NRF_LOG_INFO("1.rssi:" NRF_LOG_FLOAT_MARKER "\n",NRF_LOG_FLOAT(rssi_temp));
}
}break;

From the above code, i read the advertising RSSI of peripherals in the central device

help me to 


want to terminate the current connection handle or no need to connect,

when it's not satisfying  the below if condition

if((rssi_temp>= -75))

 

Thanks in advance

est Regards,
Venkatraaman J S.

Related