37 #ifndef AD_LISTENER_H_ 38 #define AD_LISTENER_H_ 44 #include "nrf_mesh_section.h" 56 #define ADL_WILDCARD_AD_TYPE 0u 58 #define ADL_WILDCARD_ADV_TYPE (ble_packet_type_t)0xFFu 60 typedef void (* ad_handler_t)(
const uint8_t * p_packet,
61 uint32_t ad_packet_length,
68 ble_packet_type_t adv_packet_type;
84 #define AD_LISTENER(name) NRF_MESH_SECTION_ITEM_REGISTER_FLASH(ad_listeners, const ad_listener_t name)
void ad_listener_process(ble_packet_type_t adv_type, const uint8_t *p_payload, uint32_t payload_length, const nrf_mesh_rx_metadata_t *p_metadata)
Process the incoming data from the scanner.
void ad_listener_init(void)
Initialize the AD listener module.