nrf5/modules/ubluepy: Copy address type and rssi to the ScanEntry object upon reception of an advertisment report callback.

This commit is contained in:
Glenn Ruben Bakke 2017-03-14 23:13:13 +01:00
parent cbfba08ae7
commit 609a174f8d

View File

@ -48,6 +48,9 @@ STATIC void adv_event_handler(mp_obj_t self_in, uint16_t event_id, ble_drv_adv_d
item->addr[4] = data->p_peer_addr[1];
item->addr[5] = data->p_peer_addr[0];
item->addr_type = data->type;
item->rssi = data->rssi;
mp_obj_list_append(self->adv_reports, item);
}