
S
AT Command Reference
Release r02
www.stollmann.de
Page 22 of 33
LEADPAR
Setup Parameters for Customized Advertising
AT syntax:
AT+LEADPAR=par
1
=<value
1
>[, .. [,par
n
=<value
n
>]]
This command is used to setup parameters for a customized advertising.
par
n
value
n
advtype
Optional
Coding: decimal.
Type of advertising:
0: undirected (default)
2: scannable
3: non-connectable
This command is optional, if not submitted these defaults apply:
advtype = 0 - advertising type “undirected”
Note:
The values for the minimum and maximum of the advertising interval may
be set with the
LEADINTMIN
and
LEADINTMAX
commands.
Example:
AT+LEADPAR=ADVTYPE=0
Set type of advertising “undirected”
LESCDATA Setup Scan Response Data for Customized Advertising
AT syntax:
AT+LESCDATA=<value
1
> .. <value
n
>
This command is used to setup the scan response data for a customized
advertising.
Value
k
represents an octet in hexadecimal format, k <= 31.
The coding of the data is according to the
Bluetooth 4.0 Core Specification / Vol. 3,
Part C, Chapter 11 and 18 (Length/Type/Value coding) [3]
.
Example:
41 54 2B 4C 45 53 43 44 41 54 41 3D 30 33 30
32 30 46 31 38 0D
(human readable:
AT+LESCDATA=03020F18)
Set UUID of battery service