Commands
www.ti.com
136
SWRU271H–October 2010–Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
GATTServApp API
gattAttribute_t *GATTServApp_FindAttr( gattAttribute_t *pAttrTbl, uint16 numAttrs, uint8
*pValue )
Find the attribute record within a service attribute table for a given attribute value
pointer.
Parameters pAttrTbl – pointer to attribute table
numAttrs – number of attributes in attribute table
pValue – pointer to attribute value
Returns Pointer to attribute record if found.
NULL, if not found.
bStatus_t GATTServApp_ProcessCCCWriteReq( uint16 connHandle, gattAttribute_t *pAttr, uint8
*pValue, uint8 len, uint16 offset, uint16 validCfg )
Process the client characteristic configuration write request for a given client.
Parameters connHandle– connection message was received on.
pAttr – pointer to attribute value.
pValue– pointer to data to be written
len – length of data
offset– offset of the first octet to be written
validCfg– valid configuration
Returns SUCCESS: CCC was written correctly
ATT_ERR_INVALID_VALUE: not a valid value for a CCC
ATT_ERR_INVALID_VALUE_SIZE: not a valid size for a CCC
ATT_ERR_ATTR_NOT_LONG: offset needs to be 0
ATT_ERR_INSUFFICIENT_RESOURCES: CCC not found