Hi developer,
I am trying to understand Beacon behavior and program. I am using BLE_Central multilink example to get informaiton from Beacons.
I added the below code in the function "ble_evt_handler" from main.c.
case BLE_GAP_EVT_ADV_REPORT:
{
printf("Advertise received.\n");
scan_start();
bsp_board_led_on(CENTRAL_SCANNING_LED);
memmove(uuid, p_gap_evt->params.adv_report.data.p_data, p_gap_evt->params.adv_report.data.len);
printf("UUID: %02x%02x%02x%02x%02x%02x\t", uuid[0], uuid[1], uuid[2], uuid[3], uuid[4], uuid[5]);
printf("TX_POWER: %d\t", p_gap_evt->params.adv_report.tx_power);
printf("RSSI: %d\n", p_gap_evt->params.adv_report.rssi);
//nrf_ble_scan_on_adv_report(p_scan_data, p_adv_report);
//printf("Address = %d\t TxPower = %d\t RSSI = %d\n", p_adv_report->direct_addr.addr, p_adv_report->tx_power, p_adv_report->rssi);
} break;
My beacons are off, but I got values and the values not from beacons are still printed even after the beacons are turned on.
I couldn't receive the beacon values.
Should I add something more?
Thanks for your help