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
[TW#25833] unable to set password in gatt_security_server example #2322
Comments
@MIlan991 I have added an API to set static passkey, it will be merged into IDF next week. |
@Weijian-Espressif Great, thank you. |
Solved in 892fc4a. |
@Weijian-Espressif thanks for that feature |
@Weijian-Espressif |
The spec define: for example: for some phones , it is ok that you enter 123, but some other phones maybe need you enter 000123. |
@Weijian-Espressif I did test and for me works only 0 or 000000 and all 6 digit values. Ive been trying 1234 and 12345 but could not pair/bond with nRF connect android smartphone. I did not try 001234 on smartphone because with dynamic passkey when i have had 5 digit passkey it was enough to validate without leading 0. I will try with leading 0's and leave feedback. PS i am using uint32_t instead, but it should not be an issue. |
@Weijian-Espressif |
I 'm using the example server gatt security...with iphone and android with NRF app it connects without prompt passkey... already checked if i've the last commits |
Im guessing you have this setting not changed: It needs to be changed to |
do you mean ESP_IO_CAP_OUT?
Il 07/11/18 16:03, chegewara ha scritto:
…
Im guessing you have this setting not changed:
https://github.com/espressif/esp-idf/blob/master/examples/bluetooth/gatt_security_server/main/example_ble_sec_gatts_demo.c#L557
It needs to be changed to |ESP_IO_CAP_DISPLAY| if i remember.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2322 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHSe23ugfqFULQh_m9SKIIBIcretFMttks5usvZUgaJpZM4WInQI>.
|
Yes, thats the one. |
but why static passkey changes? |
This value needs to be set to use static passkey: |
I dont know, i just copy pasted this part of code to my (Kolban's) library and it works like expected. |
Hi everyone,
I want to implement BLE security using password authentication. My device don't have Display or Keyboard and I want to connect to it using Android. My idea is to enter six digit key on Android side which I manually set in ESP firmware.
For start I'm using gatt_security_server example from ESP-IDF and I can't find the way to manually set BLE password, every time ESP generates random six digit password.
Is there a way to set manual password and to disable random password generation in gatt_security_server example?
Thank you all for advises in advance.
The text was updated successfully, but these errors were encountered: