forked from h2zero/esp-nimble-cpp
Fix client passkey callback value not sent to server.
This commit is contained in:
@ -894,7 +894,7 @@ uint16_t NimBLEClient::getMTU() {
|
||||
pkey.passkey = NimBLEDevice::m_securityCallbacks->onPassKeyRequest();
|
||||
/////////////////////////////////////////////
|
||||
} else {
|
||||
client->m_pClientCallbacks->onPassKeyRequest();
|
||||
pkey.passkey = client->m_pClientCallbacks->onPassKeyRequest();
|
||||
}
|
||||
|
||||
rc = ble_sm_inject_io(event->passkey.conn_handle, &pkey);
|
||||
|
Reference in New Issue
Block a user