S42/ADC/LUA AT Command Reference
80512ST10860A Rev.0
Page 27 of 40
2017-10-06
+LESCAN
Search Bluetooth Low Energy Devices
AT syntax:
AT+LESCAN
AT+LESCAN=GATT[,<rssix>][,RAW]
AT+LESCAN=<ux>[,<rssix>][,RAW]
AT+LESCAN=<brad>[,<tx>][,<rssix>][,RAW]
With this command an automatic search for all discoverable Bluetooth Low Energy devices will
be initiated. The discovery will last for a time defined by command AT+LESCANDURATION.
Param.
Description
rssi
Filter for devices with RSSI value stronger x
brad
Filter for Bluetooth remote device address (12 hex digits)
tx
x is the remote Bluetooth address type see chapter LinkType
If not specified a public address is assumed
ux
With x=UUID of a service (4 or 32 hex digits)
GATT
Show all found devices
RAW
Hexdump of advertising and scan response data without duplicate filtering
Any character input while the S42\ADC\LUA is searching will abort the search
procedure.
The resulting list depends on the used command parameters.
As a result, a list will be output containing the Bluetooth addresses of the visible devices in
range, the advertisement type, the RSSI, the Bluetooth friendly name, the TX level,
manufacturer specific data and all UUIDs contained in the advertising and scan response data,
if available, of the remote device. Please note that more AD types could be decoded in future
releases.
Bluetooth address, RSSI and TYPE are always provided. All other values like Bluetooth friendly
name, TX level, manufacturer specific data and UUID are optional and depends of the
advertising data of the discovered device. UUIDs can be 16-bit or 128-bit values.
The output is filtered to show each unique advertising packet only once. If the internal filter
table is full, all new advertising packets are shown unfiltered. The output in RAW mode is also
unfiltered.
The optional parameter <rssi> (8-bit signed value) can be used to perform a search only for
devices with a rssi value higher than the provided value. E.g. AT+LESCAN=rssi-50 will show
all devices with a rssi value higher than
–50dBm. This means -45dBM devices are shown, -
55dBm devices are filtered.
The optional parameter <brad> (12 hex digits) can be used to perform a search for a device
with the specified Bluetooth address. The optional parameter <tx> specifies the type of
Bluetooth low energy address.
The optional parameter <ux> (16-bit or 128-bit uuid value) can be used to perform a search
for devices which advertises a specific service.
To show devices supporting Terminal I/O only, the UUID FEFB shall be used
(AT+LESCAN=uFEFB).
If the “RAW” parameter is given, the output will not contain decoded AD type data. Instead it
will contain the Bluetooth address of the visible device in range, the RSSI, the advertisement