mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
Merge branch 'bugfix/nimble_apps_conn_handle_v3.3' into 'release/v3.3'
examples/bluetooth/nimble: Correct the connection handle in update and enc_change event (v3.3) See merge request espressif/esp-idf!7703
This commit is contained in:
@@ -181,7 +181,7 @@ bleprph_gap_event(struct ble_gap_event *event, void *arg)
|
|||||||
/* The central has updated the connection parameters. */
|
/* The central has updated the connection parameters. */
|
||||||
MODLOG_DFLT(INFO, "connection updated; status=%d ",
|
MODLOG_DFLT(INFO, "connection updated; status=%d ",
|
||||||
event->conn_update.status);
|
event->conn_update.status);
|
||||||
rc = ble_gap_conn_find(event->connect.conn_handle, &desc);
|
rc = ble_gap_conn_find(event->conn_update.conn_handle, &desc);
|
||||||
assert(rc == 0);
|
assert(rc == 0);
|
||||||
bleprph_print_conn_desc(&desc);
|
bleprph_print_conn_desc(&desc);
|
||||||
MODLOG_DFLT(INFO, "\n");
|
MODLOG_DFLT(INFO, "\n");
|
||||||
@@ -197,7 +197,7 @@ bleprph_gap_event(struct ble_gap_event *event, void *arg)
|
|||||||
/* Encryption has been enabled or disabled for this connection. */
|
/* Encryption has been enabled or disabled for this connection. */
|
||||||
MODLOG_DFLT(INFO, "encryption change event; status=%d ",
|
MODLOG_DFLT(INFO, "encryption change event; status=%d ",
|
||||||
event->enc_change.status);
|
event->enc_change.status);
|
||||||
rc = ble_gap_conn_find(event->connect.conn_handle, &desc);
|
rc = ble_gap_conn_find(event->enc_change.conn_handle, &desc);
|
||||||
assert(rc == 0);
|
assert(rc == 0);
|
||||||
bleprph_print_conn_desc(&desc);
|
bleprph_print_conn_desc(&desc);
|
||||||
MODLOG_DFLT(INFO, "\n");
|
MODLOG_DFLT(INFO, "\n");
|
||||||
|
Reference in New Issue
Block a user