www.ti.com
Generic Attribute Profile (GATT)
61
SWRU271H–October 2010–Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
The Bluetooth Low Energy Protocol Stack
5.5.4.2.5 Get and Set Functions
The profile containing the characteristics provides set and get abstraction functions for the application to
read and/or write a characteristic. The set parameter function should include logic to check for and
implement notifications and/or indications if the relevant characteristic has notify and/or indicate properties.
Figure 5-13 and the following code depict how to set the simpleProfileChacteristic4 in the
simpleGATTProfile.
Figure 5-13. Get and Set Profile Parameter Usage
The application initializes simpleProfileCharacteristic4 to 0 in SimpleBLEPeripheral.c through the following:
The code for this function is displayed in the following code from simpleGATTProfile.c. Other than setting
the value of the static simpleProfileChar4, this function also calls GATTServApp_ProcessCharCfg
because it has GATT_PROP_NOTIFY properties. This call forces GATTServApp to check if notifications
have been enabled by the GATT client. If so, the GATTServApp sends a notification of this attribute to the
GATT client.