nrf5/bluetooth: adding adv report data structure to pass to ubluepy upon adv report event. Adding new api for setting callack where to handle advertisment events in ubluepy.

This commit is contained in:
Glenn Ruben Bakke 2017-03-14 07:59:29 +01:00
parent ada69c40c6
commit 6fc806b313

View File

@ -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__