S42/ADC/LUA AT Command Reference
80512ST10860A Rev.0
Page 32 of 40
2017-10-06
The complete service/s is/are defined through repeated submissions of the
AT+LEATTRIB
command (see example below).
The
AT+LEATTRIB
commands must be submitted in a specific order:
Definition of first service:
AT+LEATTRIB=pserv, …
Definition of first characteristic of first service:
AT+LEATTRIB=char, …
… optional characteristic descriptors (AT+LEATTRIB=chardxxx) …
AT+LEATTRIB=charval, …
Definition of second characteristic of first service:
AT+LEATTRIB=char, …
… optional characteristic descriptors (AT+LEATTRIB=chardxxx) …
AT+LEATTRIB=charval, …
…
Definition of second service:
AT+LEATTRIB=pserv, …
Definition of first characteristic of second service:
AT+LEATTRIB=cha
r, …
… optional characteristic descriptors (AT+LEATTRIB=chardxxx) …
AT+LEATTRIB=charval, …
…
…
Completion of service and characteristics definition:
AT+LEATTRIB=complete
Upon successful execution of the
AT+LEATTRIB
command with
type=charval
the device
returns the data channel ID which is associated to the characteristic value.
Format:
<CR><LF>0x<
channel
><CR><LF>
Data belonging to the characteristic value is exchanged with the AT+LESRVDATA command
/ LESRVDATA event.