!
- Start advertising.
AT+BLEADVSTART
Response:
+BLEADDR:24:0a:c4:03:f4:d6
OK
•
ESP32 Client:
- Start scanning:
AT+BLESCAN=1,3
Response:
+BLESCAN:<BLE address>,<rssi>,<adv_data>,<scan_rsp_data>
OK
- Establish the BLE connection, after 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, the message
•
+BLECONN:<conn_index>,<remote_BLE_address> will appear.
If the BLE connection is broken, the message +BLEDISCONN:<conn_index>,<remote_BLE_address> will
•
appear.
3. Discover Services:
ESP32 Server:
•
- Discover local services.
AT+BLEGATTSSRV?
Response:
+BLEGATTSSRV:1,1,0xA002,1
OK
- Discover characteristics:
AT+BLEGATTSCHAR?
Response:
Espressif
86 97
!
/!
9. AT Commands Examples
2019.06
Need help?
Do you have a question about the ESP32 and is the answer not in the manual?
Questions and answers