!
Parameters
Example
6.2.6.
AT+BLESCANRSPDATA—Sets BLE Scan Response
Commands
Response
Parameter
Note
Example
Espressif
<enable>:
‣ 0: disable scanning
‣ 1: enable scanning
[<interval>]: optional parameter, unit: second
‣ When disabling the scanning, this parameter should be omitted
‣ When enabling the scanning,
- if the <interval> is 0 or omitted, it means that scanning is continuous
- if the <interval> is NOT 0, for example, command AT+BLESCAN=1,3 , it means
that scanning should last for 3 seconds and then stop automatically, so that the
scanning results be returned.
<addr>: BLE address
<rssi>: signal strength
<adv_data>: advertising data
<scan_rsp_data>: scan response data
<addr_type>:BLE address type
‣ 0: public address
‣ 1: random address
‣ 2: RPA (Resolvable Private Address) public
‣ 3: RPA (Resolvable Private Address) random
AT+BLEINIT=1 // role: client
AT+BLESCAN=1 // start scanning
// stop scanning
AT+BLESCAN=0
Set Command:
AT+BLESCANRSPDATA=<scan_rsp_data>
Function: to set scan response.
OK
<scan_rsp_data>: scan response data is a HEX string. For example, to set the response
data as "0x11 0x22 0x33 0x44 0x55", the command should be
AT+BLESCANRSPDATA="1122334455".
The maximum length of the scan response is 31 bytes.
AT+BLEINIT=2 // role: server
AT+BLESCANRSPDATA="1122334455"
45 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