S42/ADC/LUA AT Command Reference
80512ST10860A Rev.0
Page 28 of 40
2017-10-06
type and the complete advertise or scan response data from the remote device. The data is
displayed as an ascii coded byte steam in hexadecimal values.
There will be no duplicate filtering for advertising packets. All received packets (advertise or
scan response) will be printed as soon they are received. If UUID filtering is on
(AT+LESCAN=ux,RAW), the output will be printed after receiving the complete advertising
data. In active scan mode these are the advertising and scan response packets.
Example:
AT+LESCAN
008025497826,t2 RSSI:-62 TYPE:CONN
NAME:BM+SR 7
TX:4
MNF:8F0009B0011000
UUID:53544D544552494F5345525631303030
UUID:FEFB
OK
AT+LESCAN=GATT,RAW
0080254800DD,t2 RSSI:-77 TYPE:CONN
DATA:02010608FF8F0009B0011000
0080254800DD RSSI:-79 TYPE:SCANRSP
DATA:110730303031565245534F495245544D54530302FBFE080
86A75657267656E
OK
+LESCANDURATION
Duration for +LESCAN
AT syntax:
AT+LESCANDURATION=<value>
This command configures how long the S42\ADC\LUA is searching for discoverable
Bluetooth Low Energy devices when the command AT+LESCAN is used.
Value
Description
0
Sets duration time to infinite.
1..300
Sets duration time between 1 seconds and
300
seconds (
default=10
)
3.3.2.
GATT Server Definition
+LEATTRIB
Define Attributes for a Service
AT syntax:
AT+LEATTRIB=<type>[,par
1
=<value
1
>[, .. ,par
n
=<value
n
>]..]]
This command is used to define attributes for one or more services in the GATT server. The
maximum number of services and characteristics depends on the used features. Every
combination results in a different number of possible service and characteristic combinations.
The maximum number of possible characteristics is limited to 20. This restriction results from
the limited size of the internal definition array. If the space is completely used the command
“AT+LEATTRIB=charval,…” returns “ERROR”.