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

scans the beacon message and uuid

Hi,

I am using nRF51822 dongle beacon and i have two dongles. iam flashing the code ,beacon transmitter(C:\sdk_12.1.0\examples\ble_peripheral\ble_app_beacon\pca10028\s130\arm5_no_packs) in one beacon and i able to view the data (uuid and major and minor numbers) in android app(i.e Master Control Panel).i want to observe the beacons (i.e scans the data uuid and major and minor values) from second beacon. please tell me which example is used for scanning the beacon's uuid and major,minor values??

Parents Reply
  • Hi @Jørgen Holmefjord

           case BLE_GAP_EVT_ADV_REPORT:
    			
                            {
    				NRF_LOG_INFO("Advertise received");
    				scan_start();
                                    ble_gap_addr_t  addr;
    
                                    NRF_LOG_INFO("MAC ADDRESS:  %X:%X:%X:%X:%X:%X AddrType:0x0%d\n", 
                                      addr.addr[5],addr.addr[4],addr.addr[3],
                                        addr.addr[2],addr.addr[1],addr.addr[0],
                                         p_gap_evt->params.adv_report.peer_addr);
    				
    			} break;

    i had use this code in BLE_GAP_EVT_ADV_REPORT to get MAC addresses of near by devices but i am able to build it i am getting errors like:

    1) Output/ble_app_uart_c_pca10040_s132 Debug/Obj/main.o: in function `ble_evt_handler':

    2) undefined reference to `LOG_INTERNAL_7'

     

Children
Related