Unable to set password in gatt_security_server example

Milan991
Posts: 9
Joined: Mon Jun 18, 2018 10:02 pm

Unable to set password in gatt_security_server example

Postby Milan991 » Thu Aug 23, 2018 12:12 am

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.

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: Unable to set password in gatt_security_server example

Postby chegewara » Fri Aug 24, 2018 10:35 am

There was request to add this feature and has been promised it will be added in v3.1 but i think it still is not implemented.

Milan991
Posts: 9
Joined: Mon Jun 18, 2018 10:02 pm

Re: Unable to set password in gatt_security_server example

Postby Milan991 » Mon Aug 27, 2018 12:09 pm

Please let me know when it's added.

Thank you in advance.

Milan991
Posts: 9
Joined: Mon Jun 18, 2018 10:02 pm

Re: Unable to set password in gatt_security_server example

Postby Milan991 » Tue Sep 11, 2018 11:44 pm

Solved in 892fc4a.

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: Unable to set password in gatt_security_server example

Postby chegewara » Thu Sep 13, 2018 9:32 pm

Its nice feature but works only with 6 digit passkey.

EDIT For 5 digit or less passkey sometimes leading 0 is required.
https://github.com/espressif/esp-idf/is ... -421214524

Who is online

Users browsing this forum: Bing [Bot] and 72 guests