GATT Server Data Handling on AT

+LESRVDATA                                                     GATT Server Data Exchange

AT syntax:                      AT+LESRVDATA=<channel>,<hexdata>

 

Channels are created during GATT server definition using the AT+LEATTRIB command. After AT+LEATTRIB=complete, the GATT server is ready to be used.

All data for defined characteristics is sent over the corresponding channel. If a characteristic has a length of 4, 4 bytes of data has to be sent. The only exception is a defined length of 0, which means a variable length characteristic. All data sizes between 1 and 20 are allowed.

Parameter

Description

channel

Channel ID from AT+LEATTRIB command

hexdata

ASCII coded byte stream as hexadecimal values e.g. 017aFF for a three byte value