EasyManuals Logo

Texas Instruments CC2540 Software Developers Guide

Texas Instruments CC2540
162 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #124 background imageLoading...
Page #124 background image
Client Commands
www.ti.com
124
SWRU271HOctober 2010Revised 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).

Table of Contents

Other manuals for Texas Instruments CC2540

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments CC2540 and is the answer not in the manual?

Texas Instruments CC2540 Specifications

General IconGeneral
BrandTexas Instruments
ModelCC2540
CategoryMicrocontrollers
LanguageEnglish

Related product manuals