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

How to get device details of BLE devices seen by NRF52?

My setup is a Android phone, Nordic NRF52, and random BLE devices in the area. What I want is, the Android NRF-UART app connects to the NRF52 and the NRF52 sends information about the BLE devices it sees around the area. How do I get this information?

This is what I've tried:

  1. getting the peer address like this: p_ble_evt->evt.gap_evt.params.connected.peer_addr.addr[X] and sending that to the phone, I get 6 bytes of information, is this what I want? How do I translate it?

  2. adv_report_parse(BLE_GAP_AD_TYPE_MANUFACTURER_SPECIFIC_DATA, &adv_data, &type_data); support from thisisant pointed me to use this by using the input of what I want from ble_gap.h, but I have only found the BLE_GAP_AD_TYPE_FLAGS and BLE_GAP_AD_TYPE_MANUFACTURER_SPECIFIC_DATA to work. All the other options reset the connection between nrf android app and nrf52.

Any help is appreciated, thanks!

Related