-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
BLE Static passkey doesn't work properly with passkey of less than 6 digits (IDFGH-730) #3031
Comments
Its already been answered in other issue. Even if your passkey is 4 digit, like 1427, in most peer devices you probably have to prefix pin with 00, because pin has to be 6 digit long. |
If you could point out this issue, I haven't found any referencing the same problem going back at the date of the release of v3.1.2 |
@chegewara, |
@LaurentLouf Feel free to reopen if you still have the issue, thanks. |
Any update on that? Can we use 4digits instead 6 digits? |
Environment
git describe --tags
to find it): v3.1.2xtensa-esp32-elf-gcc --version
to find it): 1.22.0-80-g6c4433aProblem Description
Trying to use
ESP_BLE_SM_SET_STATIC_PASSKEY
with 4 digits doesn't work for authentication unless I add two zeroes before the pin when entering it on my phone.Expected Behavior
If it set the passkey as follow :
I should be able to just type "1427" on my smartphone when prompted for the pin.
Actual Behavior
When entering "1427" on my phone, I get the following (I'm using nkolban's BLE library)
But then if I enter "001427", I get the following :
Steps to repropduce
Code to reproduce this issue
That's the part where the security details are set up :
The text was updated successfully, but these errors were encountered: