BLE security client

steteb
Posts: 1
Joined: Mon Feb 27, 2023 9:55 pm

BLE security client

Postby steteb » Mon Feb 27, 2023 10:15 pm

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

n47h4n
Posts: 11
Joined: Sun Mar 05, 2023 10:59 am

Re: BLE security client

Postby n47h4n » Thu Dec 28, 2023 8:27 pm

Hi,
Did you solve your problem?
If so, how?
Thanks

Who is online

Users browsing this forum: No registered users and 58 guests