For the context, here is a git issue tackling the problem but without solution: https://github.com/espressif/esp32-at/issues/45
Did I missunderstood something ?
For the moment, we can't send AT+BLEENC if no device is connected (I get "ERROR").
When I connect my phone to the ESP32, I send AT+BLEENC AT+BLEENCRSP AT+BLEKEYREPLY and a pairing request is asked.
I can ignore that pairing request during 10 seconds and during this time, I can read and write to my ESP.
That is problematic
Here is my code:
Code: Select all
AT+BLEINIT=2
LESECPARAM=4,1,16,3,3
Code: Select all
AT+BLEENC=0,3
AT+BLEENCRSP=0,1
AT+BLEKEYREPLY=0,123456
And here I can do what I want without any pairing/permssion/passkey
I tried differents parameters for BLESECPARAM and BLEENC.
Did I miss something ?
Thank you.