Hi,I would like to know how to obtain slave rssi through broadcast data before two Bluetooth devices connect successfully
Hi,I would like to know how to obtain slave rssi through broadcast data before two Bluetooth devices connect successfully
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);
cheers
karthikeyan
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);
cheers
karthikeyan
ok,I will try it again.
thanks,