At+Blescan-Enables Ble Scanning - Espressif Systems ESP32 Instruction Set

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

Advertisement

!
Parameters
Notes
Example
6.2.5.
AT+BLESCAN—Enables BLE Scanning
Commands
Response
Espressif
<scan_type>:
‣ 0: passive scan
‣ 1: active scan
<own_addr_type>:
‣ 0: public address
‣ 1: random address
‣ 2: RPA public address
‣ 3: RPA random address
<filter_policy>:
‣ 0: BLE_SCAN_FILTER_ALLOW_ALL
‣ 1: BLE_SCAN_FILTER_ALLOW_ONLY_WLST
‣ 2: BLE_SCAN_FILTER_ALLOW_UND_RPA_DIR
‣ 3: BLE_SCAN_FILTER_ALLOW_WLIST_PRA_DIR
<scan_interval>: scan interval
<scan_window>: scan window
<scan_window> CANNOT be larger than <scan_interval>
AT+BLEINIT=1 // role: client
AT+BLESCANPARAM=0,0,0,100,50
Set Command:
AT+BLESCAN=<enable>[,<interval>]
Function: to enable/disable scanning.
+BLESCAN:<addr>,<rssi>,<adv_data>,<scan_rsp_data>,<addr_type>
OK
44 97
!
/!
6. BLE-Related AT Commands
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