I'm making a small beacon application based on the DA14580_BEACON_3.40.6 reference design. In particular, I would like to the broadcaster to send the scan response data in addition to the advertising data when it receives the scan response request from the observer. So I understand that I have to set app_advertise_mode in the app_init_func() to scannable undirected advertising event (ADV_SCAN_IND), but I could find any macro of this PDU type in the SDK. How can I set the broadcaster (beacon device) to achieve this?
Plus, I would like to use my own beacon data instead of using the beacon data defined in the const struct nvds_data_struct (nvds.c file). How can I do this?