mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-06 05:14:45 +00:00
Added debug log for extended advertisement
This commit is contained in:
@@ -3322,6 +3322,8 @@ ble_gap_ext_adv_start(uint8_t instance, int duration, int max_events)
|
||||
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
|
||||
* wasn't configured with own address
|
||||
*/
|
||||
@@ -3384,6 +3386,8 @@ ble_gap_ext_adv_stop_no_lock(uint8_t instance)
|
||||
|
||||
active = ble_gap_adv_active_instance(instance);
|
||||
|
||||
BLE_HS_LOG(INFO, "GAP procedure initiated: stop extended advertising.\n");
|
||||
|
||||
cmd = (void *) buf;
|
||||
|
||||
cmd->enable = 0x00;
|
||||
@@ -4979,6 +4983,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_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,
|
||||
uncoded_params ? &ucp : NULL,
|
||||
coded_params ? &cp : NULL);
|
||||
@@ -5573,6 +5579,8 @@ ble_gap_ext_connect(uint8_t own_addr_type, const ble_addr_t *peer_addr,
|
||||
goto done;
|
||||
}
|
||||
|
||||
BLE_HS_LOG(INFO, "GAP procedure initiated: extended connect; \n");
|
||||
|
||||
ble_gap_master.cb = cb;
|
||||
ble_gap_master.cb_arg = cb_arg;
|
||||
ble_gap_master.conn.using_wl = peer_addr == NULL;
|
||||
|
||||
Reference in New Issue
Block a user