Page 1 of 1

BLE security client

Posted: Mon Feb 27, 2023 10:15 pm
by steteb
Hello,

I am new to ESP32, I have an ESP32-WROOM-32 board and I am using it with Arduino IDE. I need to connect to a BLE server using security. I don't know the details of the security used by the server, it has not display or keyboard and if I try to connect with a smartphone is requested to insert a pin via keyboard and it is 123456. I would like to connect with the ESP32 to the server and use some of the GATT services that required authorization for writing and reading operations.

I have not a display or keyboard connected to the ESP32 so I would like to fix the pin in the code. I tried this example:

https://github.com/nkolban/esp32-snippe ... asskey.ino

but it doesn't seem to work. In the security callback I receive only onAuthenticationComplete() event with auth_cmpl.success false.

I tried different options for setEncryptionLevel(), setAuthenticationMode() and setCapability() without success.

Any idea and suggestion ?

Thank you

Re: BLE security client

Posted: Thu Dec 28, 2023 8:27 pm
by n47h4n
Hi,
Did you solve your problem?
If so, how?
Thanks