At+Bleadvparam-Sets Parameters Of Advertising - Espressif Systems ESP32 Instruction Set

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

Advertisement

!
6.2.7.
AT+BLEADVPARAM—Sets Parameters of Advertising
Commands
Response
Parameters
Note
Example
Espressif
Query Command:
AT+BLEADVPARAM?
Function: to query the parameters of
advertising.
+BLEADVPARAM:<adv_int_min>,<adv_int_
max>,<adv_type>,<own_addr_type>,<cha
nnel_map>,<adv_filter_policy>,<peer_
addr_type>,<peer_addr>
OK
<adv_int_min>: minimum value of advertising interval; range: 0x0020 ~ 0x4000
<adv_int_max>: maximum value of advertising interval; range: 0x0020 ~ 0x4000
<adv_type>:
‣ 0: ADV_TYPE_IND
‣ 1: ADV_TYPE_DIRECT_IND_HIGH
‣ 2: ADV_TYPE_SCAN_IND
‣ 3: ADV_TYPE_NONCONN_IND
<own_addr_type>: own BLE address type
‣ 0: BLE_ADDR_TYPE_PUBLIC
‣ 1: BLE_ADDR_TYPE_RANDOM
<channel_map>: channel of advertising
‣ 1: ADV_CHNL_37
‣ 2: ADV_CHNL_38
‣ 4: ADV_CHNL_39
‣ 7: ADV_CHNL_ALL
[<adv_filter_policy>](optional parameter): filter policy of advertising
‣ 0: ADV_FILTER_ALLOW_SCAN_ANY_CON_ANY
‣ 1: ADV_FILTER_ALLOW_SCAN_WLST_CON_ANY
‣ 2: ADV_FILTER_ALLOW_SCAN_ANY_CON_WLST
‣ 3: ADV_FILTER_ALLOW_SCAN_WLST_CON_WLST
[<peer_addr_type>](optional parameter): remote BLE address type
‣ 0: PUBLIC
‣ 1: RANDOM
[<peer_addr>](optional parameter): remote BLE address
<adv_filter_policy>,<peer_addr_type>,<peer_addr> these three parameters should be
set together, or be omitted together.
AT+BLEINIT=2 // role: server
AT+BLEADVPARAM=50,50,0,0,4,0,0,"12:34:45:78:66:88"
46 97
!
/!
6. BLE-Related AT Commands
Set Command:
AT+BLEADVPARAM=<adv_int_min>,<adv_int_max
>,
<adv_type>,<own_addr_type>,<channel_map>
[,<adv_filter_policy>,<peer_addr_type>,<p
eer_addr>]
Function: to set the parameters of advertising.
OK
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