!
Response:
OK
- Create services:
AT+BLEGATTSSRVCRE
Response:
OK
- Start services:
AT+BLEGATTSSRVSTART
Response:
OK
ESP32 Client:
•
AT+BLEINIT=1 // client role
Response:
OK
2. Establish BLE connection:
•
ESP32 Server:
- Query the BLE address. The following section takes "24:0a:c4:03:f4:d6" as a
example.
AT+BLEADDR? // get server's BLE address
Response:
+BLEADDR:24:0a:c4:03:f4:d6
OK
- Configure advertisement data (optional). Without the configuration, the payload of the
broadcasting packet will be empty.
AT+BLEADVDATA="0201060B09457370726573736966030302A0"
/* The adv data is
* 02 01 06 //<length>,<type>,<data>
* 0A 09 457370726573736966 //<length>,<type>,<data>
* 03 03 02A0 //<length>,<type>,<data>
*/
Response:
OK
Espressif
85 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