Chengdu Ebyte Electronic Technology Co.,Ltd
E104-BT53C3 Manual User
Copyright ©2012–2020
,Chengdu Ebyte Electronic Technology Co.,Ltd
16
Setting
AT+ADV=<para1>,<para2>,<para3>
+OK:success
+ERR=[NUM]:Error
Parameters
para1
Broadcast status: 0, off. 1. On;
para2
Broadcast type:0: cannot connect to broadcast. 1, can
connect to the broadcast
para3
The value ranges from 20 to 10240. The default value is
200ms
description
Effective immediately, power off save;
Only slave roles (including single slave, master slave integration, and beacon) can be set. Single
master roles cannot be set.
Example
Query broadcast parameters
Instruction: AT+ADV?
Return: +ADV=1,1,200
To enable unconnected broadcast with an interval of 500ms, run the following command
Instruction: AT+ADV=1,0,500 or AT+ADV=,0,500 (when broadcast is on)
Return: +OK
Turn off the broadcast (the other two parameters remain unchanged)
Instruction: AT+ADV=0,0,500 or AT+ADV=0
Return: +OK
6.3.7 Customize broadcast data
Command
Reply
Inquire
AT+ADVDATA?
+ ADVDATA =[para1],[para2]
Settings
AT+ADVDATA=[para], <para2>
+OK:success
+ERR=[NUM]:Error
Settings
(Not saved)
AT+ADVDATA_CUR=[para], <para2>
Parameters
para1: Data input format (0: ASCII; 1: HEX)
para2: User-defined broadcast data
description
Effective immediately, instruction AT+ADVDATA is saved after power failure, instruction
AT+ADVDATA_CUR is not saved after power failure;
Return NULL if custom broadcast data is not set.
This command is supported only in single-slave roles and master-slave integrated roles.
Single-host roles and Beacon roles do not support this command.
The data is placed in the custom field of the manufacturer, and the user can customize up to 26
bytes;
Use the command "AT+ADVDATA=0" or "AT+ADVDATA=1" to restore the broadcast data to the default
broadcast data;
For applications that require frequent modification of broadcast data, you are strongly advised
to run the AT+ADVDATA_CUR command to prevent Flash parameter modification from affecting the Flash
lifetime.
The APP configuration completion setting function is not supported.