nrf5/modules/ubluepy: Adding adv_reports member to scanner object, to hold the result of scan.

This commit is contained in:
Glenn Ruben Bakke 2017-03-14 07:57:20 +01:00
parent 5fc6a9d9a2
commit ada69c40c6
1 changed files with 2 additions and 0 deletions

View File

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