This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52840 Serial Comm. RSSI Values

Hello,

I am currently working with the nRF52840 DK, and I have been having trouble printing RSSI values over termite.

Code:

static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context)
{
ret_code_t err_code;
ble_gap_evt_t const * p_gap_evt = &p_ble_evt->evt.gap_evt;

switch (p_ble_evt->header.evt_id)
{
case BLE_GAP_EVT_ADV_REPORT:
on_adv_report( &p_gap_evt->params.adv_report );
if ( p_gap_evt->params.adv_report.scan_rsp )
{
printf("RSSI: %d",p_ble_evt->evt.gap_evt.params.adv_report.rssi);
}
break; ...
At the the moment the following is happening: 
I am using printf("RSSI: %d",p_ble_evt->evt.gap_evt.params.adv_report.rssi);, to capture the RSSI value in the adv_report, however there appear to be a very large quantity of RSSI values.
My goal is to print out a single RSSI value for each device. 

Thanks,
Chris
Parents Reply Children
Related