SWRU271I October 2010 – January 2020 CC2540 , CC2540T , CC2541 , CC2541-Q1 , CC2640R2F
When a read request from a GATT client is received for a given attribute, the protocol stack checks the permissions of the attribute. If the attribute is readable, the protocol stack calls the read call-back of the profile. The profile must copy the value, perform any profile-specific processing, and notify the application if applicable. The following flow diagram shows the processing workflow for a read of SIMPLEPROFILE_CHAR1 in the simpleGATTProfile.
NOTE
Consider the processing in this section in the context of the protocol stack. If any intensive profile related processing must be completed for an attribute read, this processing should be split up and completed in the context of the application task. For more information, see Section 5.5.4.2.4.2.