!
6.2.8.
AT+BLEADVDATA—Sets Advertising Data
Commands
Response
Parameters
Note
Example
6.2.9.
AT+BLEADVSTART—Starts Advertising
Commands
Response
Parameter
Notes
Example
6.2.10. AT+BLEADVSTOP—Stops Advertising
Commands
Response
Parameter
Notes
Example
Espressif
Set Command:
AT+BLEADVDATA=<adv_data>
Function: to set advertising data.
OK
<adv_data>: advertising data; this is a HEX string. For example, to set the advertising data
as "0x11 0x22 0x33 0x44 0x55", the command should be AT+BLEADVDATA="1122334455".
The maximum length of the advertising data is 31 bytes.
AT+BLEINIT=2 // role: server
AT+BLEADVDATA="1122334455"
Execute Command:
AT+BLEADVSTART
Function: to start advertising.
OK
None
If advertising parameters are NOT set by command AT+BLEADVPARAM=<adv_parameter>,
•
the default parameters will be used.
If advertising data is NOT set by command AT+BLEADVDATA=<adv_data>, the all zeros
•
data will be sent.
AT+BLEINIT=2 // role: server
AT+BLEADVSTART
Execute Command:
AT+BLEADVSTOP
Function: to stop advertising.
OK
None
After having started advertising, if the BLE connection is established successfully, it will stop
advertising automatically. In such a case, this command does NOT need to be called.
AT+BLEINIT=2 // role: server
AT+BLEADVSTART
AT+BLEADVSTOP
47 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