-
-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bonding must always be re-established after NimBLEDevice::deinit(false). #720
Comments
Please try setting the security config after init instead of in the callback.
|
Hello, thank you very much for your response. Unfortunately, the same effect also occurs in this case. If the corresponding characteristics are accessed, the passkey must be re-entered each time a new connection is established (only when using deinit()). |
Now I get this error message: E NimBLEDevice: esp_nimble_hci_and_controller_deinit() failed with error: 259 |
That error is from here: Looks like the controller wasn't initialized when you called deint. |
I'll have a look at that. Thanks for the answer. |
Hello, I am currently trying to equip a battery-powered device with NimBLE to send sensor data to a smartphone.
Hardware used: ESP32-S3
Programming environment: Arduino IDE 2.3.2
Library: NimBLE-Arduino 1.4.2
To save battery I use the command “NimBLEDevice::deinit(false)” after advertising when no device is connected to the server. I want to bond the server with the smartphone once and then a connection should always be possible.
Implementation of the secure connection:
Error message: E (231388) NimBLE: failed to configure restored IRK
The passkey must be entered again for each connection. I have not found any information about this problem. This problem does not occur without the deinit() function. I would be very grateful for help.
The text was updated successfully, but these errors were encountered: