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

scan and parse manufacturer specific data (zephyr)

Hi. 

Hope someone could help me on how to scan and parse the Manufacturer Specific Data that comes after the Company ID. I am using zephyr with nRF52840.

Thanks!

Parents
  • Hi

    First off, is the central device going to connect to the peripheral device or will it just be a scanner retrieving advertising data from nearby peripherals? Have you added the manufacturer specific data as part of the advertising data in your peripheral application? 

    The best way to parse advertising data is to use the bt_data_parse() helper function on the received adv data given to the bt_le_scan_cb_t callback. You can check out the central_hr sample project for an example on how this function can be used.

    Best regards,

    Simon

Reply
  • Hi

    First off, is the central device going to connect to the peripheral device or will it just be a scanner retrieving advertising data from nearby peripherals? Have you added the manufacturer specific data as part of the advertising data in your peripheral application? 

    The best way to parse advertising data is to use the bt_data_parse() helper function on the received adv data given to the bt_le_scan_cb_t callback. You can check out the central_hr sample project for an example on how this function can be used.

    Best regards,

    Simon

Children
Related