!
6.2.33. AT+BLEENCRSP—Sets a Pairing Response
Commands
Response
Parameters
Example
6.2.34. AT+BLEKEYREPLY—Reply to a Pairing Key
Commands
Response
Parameters
Example
6.2.35. AT+BLECONFREPLY—Reply to a Pairing Result
Commands
Response
Parameters
Example
Espressif
Set Command:
AT+BLEENCRSP=<conn_index>,<accept>
Function: to set a pairing response.
OK
<conn_index>: index of BLE connection; only 0 is supported for the single connection right
now, but multiple BLE connections will be supported in the future.
<accept>:
‣ 0: reject
‣ 1: accept
AT+BLEENCRSP=0,1
Set Command:
AT+BLEKEYREPLY=<conn_index>,<key>
Function: to reply to a pairing key.
OK
<conn_index>: index of BLE connection; only 0 is supported for the single connection right
now, but multiple BLE connections will be supported in the future.
<key>: pairing key
AT+BLEKEYREPLY=0,649784
Set Command:
AT+BLECONFREPLY=<conn_index>,<confirm>
Function: to reply to a pairing result when the pairing key cannot be used.
OK
<conn_index>: index of BLE connection; only 0 is supported for the single connection right
now, but multiple BLE connections will be supported in the future.
<confirm>:
‣ 0: No
‣ 1: Yes
// confirm that pairing succeeded
AT+BLECONFREPLY=0,1
63 97
!
/!
6. BLE-Related AT Commands
2019.06
Need help?
Do you have a question about the ESP32 and is the answer not in the manual?
Questions and answers