135
SWRU271H–October 2010–Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
GATTServApp API
Appendix E
SWRU271H–October 2010–Revised April 2019
GATTServApp API
E.1 Overview
This section details the API of the GATTServApp in gattservapp_util.c.
NOTE: These API are only the public commands that should be called by the profile and/or
application.
E.2 Commands
void GATTServApp_InitCharCfg( uint16 connHandle, gattCharCfg_t *charCfgTbl )
Initialize the client characteristic configuration table for a given connection. Use
this whenever a service is added to the application (see Section 5.5.4.2.2)
Parameters connHandle – connection handle (0xFFFF for all connections).
charCfgTbl – client characteristic configuration table where this characteristic is
bStatus_t GATTServApp_ProcessCharCfg( gattCharCfg_t *charCfgTbl, uint8 *pValue,uint8
authenticated, gattAttribute_t *attrTbl, uint16 numAttrs, uint8 taskId,
pfnGATTReadAttrCB_t pfnReadAttrCB )
Process Client Characteristic Configuration change.
Parameters charCfgTbl – profile characteristic configuration table
pValue – pointer to attribute value.
authenticated – whether an authenticated link is required
attrTbl – whether attribute table.
numAttrs – number of attributes in attribute table.
tasked – task to be notified of confirmation.
pfnReadAttrCB – read callback function pointer.
Returns SUCCESS: parameter was set
INVALIDPARAMETER: one of the parameters was a null pointer
ATT_ERR_INSUFFICIENT_AUTHOR: permissions require authorization
bleTimeout: ATT timeout occurred
blePending: another ATT request is pending
LINKDB_ERR_INSUFFICIENT_AUTHEN: authentication is required but link is not
authenticated
bleMemAllocError: memory allocation failure occurred when allocating buffer