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

Reading Beacon UUID 128 bit

Dear Ladies and Gentlement,

I would like to read the 128bit UUID transmitted an iBeacon received on a S140 ble_central - just similarly as it is done with nordic App nRF Connect.

So when activating the iBeacon device, while scanning for it on the smartphone with nordic nRF Connect app, I see:

N/A(iBeacon)

MAC

Not Bonded

Device type: UNKNOWN

Advertising Type: Legacy

Flags: GeneralDiscoverable, BrEdrNotSupported

Beacon:

Company; Apple, Inc <0x004C>

Type: Beacon <0x02>

Length of data: 21 bytes

UUID: xxxxxxxx-yyyy-zzzz-xxxx-1234567890AB

Major: 5

Minor: 21342

RSSI at 1 m: -60bBm

I'd like to access the fields UUID, Major and Minor and get the corresponding values in my S140 ble_central.

How can I get these values?

I found the following example:

https://devzone.nordicsemi.com/f/nordic-q-a/40563/how-to-read-beacon-uuid-rssi-major-minor-and-tx-power-by-using-nrf52840-dk

But it doesn't seem to render correct results for 128-bit UUIDs.

Best regards,

Richard

Related