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

changing the layout of beacon

how to change nrf52832 beacon layout like this layout

  • I would recommend you to take a look at the ble_app_beacon example in SDK 15.3. There, the advertising data set is configured through the function sd_ble_gap_adv_set_configure(..), where the data is provided as the second input parameter.

    The beacon data is put into the manufacturer specific data field (read more about it here). In the beacon example you can see that the uint8_t array m_beacon_info contains all the beacon data, and is later encoded an fed into the sd_ble_gap_adv_set_configure(..) function. Thus, you have to modify the m_beacon_info array to change the layout, and remember to set the APP_BEACON_INFO_LENGTH equal to the total size of the data in your new layout.

    Best regards,

    Simon

  • I would recommend you to take a look at the ble_app_beacon example in SDK 15.3. There, the advertising data set is configured through the function sd_ble_gap_adv_set_configure(..), where the data is provided as the second input parameter.

    The beacon data is put into the manufacturer specific data field (read more about it here). In the beacon example you can see that the uint8_t array m_beacon_info contains all the beacon data, and is later encoded an fed into the sd_ble_gap_adv_set_configure(..) function. Thus, you have to modify the m_beacon_info array to change the layout, and remember to set the APP_BEACON_INFO_LENGTH equal to the total size of the data in your new layout.

    Best regards,

    Simon

Related