mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-14 05:00:06 +00:00
Added debug log for extended advertisement
This commit is contained in:
@@ -3234,6 +3234,8 @@ ble_gap_ext_adv_start(uint8_t instance, int duration, int max_events)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BLE_HS_LOG(INFO, "GAP procedure initiated: extended advertise; instance=%u\n", instance);
|
||||||
|
|
||||||
/* fallback to ID static random address if using random address and instance
|
/* fallback to ID static random address if using random address and instance
|
||||||
* wasn't configured with own address
|
* wasn't configured with own address
|
||||||
*/
|
*/
|
||||||
@@ -3296,6 +3298,8 @@ ble_gap_ext_adv_stop_no_lock(uint8_t instance)
|
|||||||
|
|
||||||
active = ble_gap_adv_active_instance(instance);
|
active = ble_gap_adv_active_instance(instance);
|
||||||
|
|
||||||
|
BLE_HS_LOG(INFO, "GAP procedure initiated: stop extended advertising.\n");
|
||||||
|
|
||||||
cmd = (void *) buf;
|
cmd = (void *) buf;
|
||||||
|
|
||||||
cmd->enable = 0x00;
|
cmd->enable = 0x00;
|
||||||
@@ -4891,6 +4895,8 @@ ble_gap_ext_disc(uint8_t own_addr_type, uint16_t duration, uint16_t period,
|
|||||||
ble_gap_master.cb = cb;
|
ble_gap_master.cb = cb;
|
||||||
ble_gap_master.cb_arg = cb_arg;
|
ble_gap_master.cb_arg = cb_arg;
|
||||||
|
|
||||||
|
BLE_HS_LOG(INFO, "GAP procedure initiated: extended discovery; \n");
|
||||||
|
|
||||||
rc = ble_gap_ext_disc_tx_params(own_addr_type, filter_policy,
|
rc = ble_gap_ext_disc_tx_params(own_addr_type, filter_policy,
|
||||||
uncoded_params ? &ucp : NULL,
|
uncoded_params ? &ucp : NULL,
|
||||||
coded_params ? &cp : NULL);
|
coded_params ? &cp : NULL);
|
||||||
@@ -5485,6 +5491,8 @@ ble_gap_ext_connect(uint8_t own_addr_type, const ble_addr_t *peer_addr,
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BLE_HS_LOG(INFO, "GAP procedure initiated: extended connect; \n");
|
||||||
|
|
||||||
ble_gap_master.cb = cb;
|
ble_gap_master.cb = cb;
|
||||||
ble_gap_master.cb_arg = cb_arg;
|
ble_gap_master.cb_arg = cb_arg;
|
||||||
ble_gap_master.conn.using_wl = peer_addr == NULL;
|
ble_gap_master.conn.using_wl = peer_addr == NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user