diff --git a/nrf5/bluetooth/ble_drv.h b/nrf5/bluetooth/ble_drv.h index 8e19293c72..c764b21a69 100644 --- a/nrf5/bluetooth/ble_drv.h +++ b/nrf5/bluetooth/ble_drv.h @@ -32,6 +32,14 @@ #include "modubluepy.h" +typedef struct { + uint8_t * p_peer_addr; + bool is_scan_resp; + int8_t rssi; + uint8_t data_len; + uint8_t * p_data; +} ble_drv_adv_data_t; + uint32_t ble_drv_stack_enable(void); void ble_drv_stack_disable(void); @@ -64,4 +72,6 @@ void ble_drv_scan_start(void); void ble_drv_scan_stop(void); +void ble_drv_adv_report_handler_set(mp_obj_t obj, ubluepy_adv_evt_callback_t evt_handler); + #endif // BLUETOOTH_LE_DRIVER_H__