Espressif Systems ESP32 Instruction Set page 86

At instruction set and examples
Hide thumbs Also See for ESP32:
Table of Contents

Advertisement

!
AT+BLEADVSTART
Response:
OK
ESP32 Client:
- Configure the scanning parameters. This is optional, though. For example, in the
active-scan mode, the command is as follows:
AT+BLESCANPARAM=1,0,0,100,50
Response:
OK
- Start scanning.
AT+BLESCAN=1,3
Response:
+BLESCAN:<BLE address>,<rssi>,<adv_data>,<scan_rsp_data>
OK
- Establish the BLE connection, when the server is scanned successfully.
AT+BLECONN=0,"24:0a:c4:03:f4:d6"
Response:
OK
+BLECONN:0,"24:0a:c4:03:f4:d6"
�� Notes:
If the BLE connection is established successfully, it will prompt
+BLECONN:<conn_index>,<remote_BLE_address>
If the BLE connection is broken, it will prompt +BLEDISCONN:<conn_index>,<remote_BLE_address>
- Update the connection parameters:
AT+BLECONNPARAM=0,30,30,0,600
OK
You can also query the result:
AT+BLECONNPARAM?
+BLECONNPARAM:0,30,30,30,0,600
OK
- Set the Maximum Transmission Unit (MTU)
The client can initiate an Exchange MTU Request after the connection has been
established:
Espressif
80 97
!
/!
9. AT Commands Examples
2019.06

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32 and is the answer not in the manual?

Questions and answers

Table of Contents