From 706bc97c929f23205a0b9a145445d898afa664ed Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Sat, 1 Apr 2017 22:32:55 +0200 Subject: [PATCH] nrf5/modules/ubluepy: Upon advertisment event, also store the advertisment data. --- nrf5/modules/ubluepy/ubluepy_scanner.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nrf5/modules/ubluepy/ubluepy_scanner.c b/nrf5/modules/ubluepy/ubluepy_scanner.c index 112b075625..6946fbb5c8 100644 --- a/nrf5/modules/ubluepy/ubluepy_scanner.c +++ b/nrf5/modules/ubluepy/ubluepy_scanner.c @@ -55,6 +55,7 @@ STATIC void adv_event_handler(mp_obj_t self_in, uint16_t event_id, ble_drv_adv_d item->addr_type = data->addr_type; item->rssi = data->rssi; + item->data = mp_obj_new_bytearray(data->data_len, data->p_data); mp_obj_list_append(self->adv_reports, item); }