nrf5/bluetooth: Adding address type to bluetooth stack driver advertisment structure, and fill the member when advertisment report is received.
This commit is contained in:
parent
445b45ee13
commit
cbfba08ae7
|
@ -773,7 +773,8 @@ static void ble_evt_handler(ble_evt_t * p_ble_evt) {
|
|||
.is_scan_resp = p_ble_evt->evt.gap_evt.params.adv_report.scan_rsp,
|
||||
.rssi = p_ble_evt->evt.gap_evt.params.adv_report.rssi,
|
||||
.data_len = p_ble_evt->evt.gap_evt.params.adv_report.dlen,
|
||||
.p_data = p_ble_evt->evt.gap_evt.params.adv_report.data
|
||||
.p_data = p_ble_evt->evt.gap_evt.params.adv_report.data,
|
||||
.type = p_ble_evt->evt.gap_evt.params.adv_report.type
|
||||
};
|
||||
|
||||
// TODO: Fix unsafe callback to possible undefined callback...
|
||||
|
|
|
@ -38,6 +38,7 @@ typedef struct {
|
|||
int8_t rssi;
|
||||
uint8_t data_len;
|
||||
uint8_t * p_data;
|
||||
uint8_t type;
|
||||
} ble_drv_adv_data_t;
|
||||
|
||||
typedef void (*ble_drv_gap_evt_callback_t)(mp_obj_t self, uint16_t event_id, uint16_t conn_handle, uint16_t length, uint8_t * data);
|
||||
|
|
Loading…
Reference in New Issue