This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to operate in central and take use of the macro APPL_LOG

condition:i am using the nrf51_adk10.0.0,and i want to enable the NRF51422 as a central role.,so a program the sd130,and i download the application into the board(ble_app_uart_c_s130_pca10028),i don't know how to use is to scan the slave which is advertising and take use of the log print.

so my question is : how to use is to scan the slave which is advertising.?~~~

how to make use of the macro APPL_LOG?~~

thank you very much!!!

  • Hey.

    Scanning is started with scan_start(). All BLE events are sent to the on_ble_evt function. The BLE_GAP_EVT_ADV_REPORT event occurs when a slave advertisement has been scanned. Within the p_adv_report structure, you find all the advertisement data received. You can then use APPL_LOG(string), to print out the information you want.

    See the BLE central tutorial. and this post for information about parsing an advertisement packet.

Related