Get Advertisement Data to verify (in peripheral)

Hello,

I am using nrf52832 as a peripheral and running SD S112, nordic UART Profile and SDK 17.1.0 on it.

After I start advertisement with the manufacturing data, I want to verify after few seconds if I am advertising correctly. Is there a way or API call that can read my current advertisement data like ?

Thanks,

Justin

  • Hello Justin,

    The advertisement payload buffers (adv data + scan response) is located in the application, not in the Softdevice, so you can always inspect the buffers to verify the data (buffer pointers are contained in m_advertising.adv_data). The Advertising and Scan Response Data Encoder module contains helper function you can use to parse the encoded payload. That said, I'm not sure I understand the purpose of checking the payload after starting the advertiser. The Softdevice will check the validity of your advertisement data before you start advertising.

    Best regards,

    Vidar

Related