Skip to content

Commit 493e47e

Browse files
committed
Fix client passkey callback value not sent to server. fixes #115
1 parent ba141e9 commit 493e47e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NimBLEClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ uint16_t NimBLEClient::getMTU() {
894894
pkey.passkey = NimBLEDevice::m_securityCallbacks->onPassKeyRequest();
895895
/////////////////////////////////////////////
896896
} else {
897-
client->m_pClientCallbacks->onPassKeyRequest();
897+
pkey.passkey = client->m_pClientCallbacks->onPassKeyRequest();
898898
}
899899

900900
rc = ble_sm_inject_io(event->passkey.conn_handle, &pkey);

0 commit comments

Comments
 (0)