S42/ADC/LUA AT Command Reference
80512ST10860A Rev.0
Page 24 of 40
2017-10-06
+LETIO
Enable Terminal I/O Service
AT syntax:
AT+LETIO=<value>
This command controls the Terminal I/O service. If set to 0 the Terminal I/O service is disabled.
Value
Description
0
Terminal I/O service disabled (no advertising, no characteristics)
1
Terminal I/O service enabled, security is required with encryption (no
MITM)
2
Terminal I/O service enabled, no security (authentication or
encryption) required
3
Terminal I/O service enabled, authenticated pairing with encryption
(MITM required)
4
Terminal I/O service enabled, authenticated LE Secure connections
pairing with encryption (MITM required, LE secure connections
required)
+LEADDATA
Setup Advertise Data for Customized Advertising
AT syntax:
AT+LEADDATA=<value
1
> .. <value
n
>
This command is used to setup the advertise 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) [4]
.
Example:
AT+LEADDATA=02010603020F18
Set flags + UUID of battery service
+LEADE
Enable Customized Advertising
AT syntax:
AT+LEADE=<value>
This command controls the advertising behavior.
With
AT+LEADE=0
only the build in Terminal I/O service is advertised.
With
AT+LEADE=1
only the customized advertising value is advertised.
With
AT+LEADE=3
the module stops all advertising. With disabled advertising the client (e.g.
iPhone) is not able to discover the device or to connect to the device. This should only be done
when the service is not in use to save battery power.