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/R
ead 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
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