nrf5/modules/ubluepy: Upon advertisment event, also store the advertisment data.

This commit is contained in:
Glenn Ruben Bakke 2017-04-01 22:32:55 +02:00
parent 276073b494
commit 706bc97c92
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}