Client Commands
www.ti.com
124
SWRU271H–October 2010–Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
GATT/ATT API
D.3 Client Commands
bStatus_t GATT_InitClient(void)
Initialize the GATT client in the Bluetooth Low Energy Stack.
Notes GATT clients should call this from the application initialization function.
bStatus_t GATT_RegisterForInd (uint8 taskId)
Register to receive incoming ATT Indications or Notifications of attribute values.
Parameters taskId: task which to forward indications or notifications
Notes GATT clients should call this from the application initialization function.
bStatus_t GATT_DiscAllPrimaryServices( uint16 connHandle, uint8 taskId)
Used by a client to discover all primary services on a server.
Parameters connHandle: connection to use
taskId: task to be notified of response
Corresponding Events If the return status is SUCCESS, the calling application task receives multiple
GATT_MSG_EVENT messages with type ATT_READ_BY_GRP_TYPE_RSP or
ATT_ERROR_RSP (if an error occurred on the server). This sub-procedure is complete
when either ATT_READ_BY_GRP_TYPE_RSP (with bleProcedureComplete or
bleTimeout status) or the calling application task receives the ATT_ERROR_RSP (with
SUCCESS status).
bStatus_t GATT_DiscPrimaryServiceByUUID( uint16 connHandle, uint8 *pValue, uint8 len, uint8
taskId )
Used by a client to discover a specific primary service on a server when only the
Service UUID is known.
Parameters connHandle: connection to use
pValue: pointer to value (UUID) to look for
len: length of value
taskId: task to be notified of response
Corresponding Events If the return status is SUCCESS, the calling application task receives multiple
GATT_MSG_EVENT messages with type ATT_FIND_BY_TYPE_VALUE_RSP or
ATT_ERROR_RSP (if an error occurred on the server). This sub-procedure is complete
when either ATT_FIND_BY_TYPE_VALUE_RSP (with bleProcedureComplete or
bleTimeout status) or the calling application task receives the ATT_ERROR_RSP (with
SUCCESS status).