!
Example
6.2.31. AT+BLESECPARAM—Set Parameters of BLE SMP
Commands
Response
Espressif
AT+BLEINIT=2 // role: server
AT+BLEGATTSSRVCRE
AT+BLEGATTSSRVSTART
AT+BLEGATTSCHAR?
AT+BLEADVSTART // start advertising
// After a BLE client connects to the ESP server, the message +BLECONN:0,<client MAC>
will return.
// For example, to configure the 7th characteristic in the 1st service as a TX channel for
sending data; and configure the 5th characteristic in the 1st service as a RX channel for
receiving data, use the following command:
AT+BLESPPCFG=1,1,7,1,5
// The client needs to listen to the notification/indication from TX channel which is the 7th
characteristic in this example.
// enable BLE SPP
AT+BLESPP
Query Command:
AT+BLESECPARAM?
Function: to query parameters of BLE SMP
(Security Manager Specification).
+BLESECPARAM:<auth_req>,<iocap>,<key_s
ize>,<init_key>,<rsp_key>
OK
61 97
!
Set Command:
AT+BLESECPARAM=<auth_req>,<iocap>,<key_s
ize>,<init_key>,<rsp_key>
Function: to set parameters of BLE SMP.
OK
/!
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