EasyManua.ls Logo

TELINK SEMICONDUCTOR TLSR8232 - Attribute Table Layout

Default Icon
211 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Telink TLSR8232 BLE SDK Developer Handbook
AN-19112700-E1 98 Ver.1.0.0
2) If the callback read function is not set, Slave will automatically read “attrLen” bytes of
data from the area pointed by the “pAttrValue”, and the data will be responded to
Master via “Read Response/Read Blob Response”.
Therefore, after a Read Request/Read Blob Request is received from Master, if it’s
needed to modify the content of Read Response/Read Blob Response, user can
register corresponding callback function r, modify contents in RAM pointed by the
pAttrValue” in this callback function, and the return value must be 0.
3.4.2.7 Attribute Table Layout
Figure 3-34 shows Service/Attribute layout based on Attribute Table. The “attnum” of the
first Attribute indicates the number of valid Attributes in current ATT Table; the remaining
Attributes are assigned to different Services, the first Attribute of each Service is the
declaration”, and the following “attnum” Attributes constitute current Service. Actually the
first item of each Service is a Primary Service.
const u16 my_primaryServiceUUID = GATT_UUID_PRIMARY_SERVICE;
#define GATT_UUID_PRIMARY_SERVICE 0x2800 //!< Primary Service

Table of Contents