How to read advertising BLE devices' name?

I've google the heck out of this, but I feel like I'm missing something because there are zero results.

I am developing a BLE central device, and the program is supposed to scan for advertising BLE devices, and list their address and name. Since the program is based off the "BLE Central" example, I have no issue reading their addresses, however, I cannot figure out how to read device names (e.g. "Zephyr BLE Module").

I know the BLE devices are advertising their names because I can see their names when I use the nRF Connect bluetooth app, but I want to be able to see their names through my own program, and print it to the console.

If it matters, the peripheral device is using the "BLE Peripheral" example.

Parents
  • I get the same problem when I want to get the  BLE devices' name

          the "BLE Central"  can only get  31-Bytes adv data in "device_found()" callback,   but the device-name need more than 31-Bytes

             in "nRF Connect"  I get the BLE-device like this:

                               

         but in the "BLE Central" example, can only get 31-Bytes adv data like this:

               

            How can i get more than 31-Bytes adv data in  "device_found()" callback?

Reply
  • I get the same problem when I want to get the  BLE devices' name

          the "BLE Central"  can only get  31-Bytes adv data in "device_found()" callback,   but the device-name need more than 31-Bytes

             in "nRF Connect"  I get the BLE-device like this:

                               

         but in the "BLE Central" example, can only get 31-Bytes adv data like this:

               

            How can i get more than 31-Bytes adv data in  "device_found()" callback?

Children
Related