Skip to content

Commit

Permalink
Auth_Conn Adjustments
Browse files Browse the repository at this point in the history
Signed-off-by: Joao Dullius <[email protected]>
  • Loading branch information
joaodullius committed Jan 3, 2023
1 parent e67a8c0 commit d2f4c6b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions simple_service/central_simple_service/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,13 @@ static void security_changed(struct bt_conn *conn, bt_security_t level,

if (!err) {
LOG_WRN("Security changed: %s level %u", addr, level);
gatt_discover(conn);
} else {
LOG_ERR("Security failed: %s level %u err %d", addr,
level, err);
}

gatt_discover(conn);

}

BT_CONN_CB_DEFINE(conn_callbacks) = {
Expand Down Expand Up @@ -288,8 +289,6 @@ static void auth_passkey_entry(struct bt_conn *conn)
{
char addr[BT_ADDR_LE_STR_LEN];

default_conn = bt_conn_ref(conn);

bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr));

// Check for passkey entry event
Expand Down

0 comments on commit d2f4c6b

Please sign in to comment.