diff --git a/nrf5/modules/ubluepy/modubluepy.h b/nrf5/modules/ubluepy/modubluepy.h index c5f8440e60..d31188d6fd 100644 --- a/nrf5/modules/ubluepy/modubluepy.h +++ b/nrf5/modules/ubluepy/modubluepy.h @@ -147,6 +147,7 @@ typedef struct _ubluepy_advertise_data_t { typedef struct _ubluepy_scanner_obj_t { mp_obj_base_t base; + mp_obj_t adv_reports; } ubluepy_scanner_obj_t; typedef struct _ubluepy_scan_entry_obj_t { @@ -170,5 +171,6 @@ typedef enum _ubluepy_attr_t { typedef void (*ubluepy_gap_evt_callback_t)(mp_obj_t self, uint16_t event_id, uint16_t conn_handle, uint16_t length, uint8_t * data); typedef void (*ubluepy_gatts_evt_callback_t)(mp_obj_t self, uint16_t event_id, uint16_t attr_handle, uint16_t length, uint8_t * data); +typedef void (*ubluepy_adv_evt_callback_t)(mp_obj_t self, uint16_t event_id, ble_drv_adv_data_t * data); #endif // UBLUEPY_H__