mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-22 13:10:55 +01:00
Fix client passkey callback value not sent to server.
This commit is contained in:
parent
492bcf6f78
commit
a17f3199bd
1 changed files with 1 additions and 1 deletions
|
@ -894,7 +894,7 @@ uint16_t NimBLEClient::getMTU() {
|
||||||
pkey.passkey = NimBLEDevice::m_securityCallbacks->onPassKeyRequest();
|
pkey.passkey = NimBLEDevice::m_securityCallbacks->onPassKeyRequest();
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
} else {
|
} else {
|
||||||
client->m_pClientCallbacks->onPassKeyRequest();
|
pkey.passkey = client->m_pClientCallbacks->onPassKeyRequest();
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = ble_sm_inject_io(event->passkey.conn_handle, &pkey);
|
rc = ble_sm_inject_io(event->passkey.conn_handle, &pkey);
|
||||||
|
|
Loading…
Reference in a new issue