SWRU271I October 2010 – January 2020 CC2540 , CC2540T , CC2541 , CC2541-Q1 , CC2640R2F
When a write request from a GATT Client is received for a given attribute, the protocol stack will check the permissions of the attribute. If the attribute is write, call the write callback of the profile. The profile stores the value to be written, performs any profile-specific processing, and notifies the application if applicable. The following flow diagram illustrates a write of simpleprofileChar3 in the simpleGATTProfile. In the diagram, red corresponds to processing in the protocol stack context and green corresponds to processing in the application context.
NOTE
Minimize the processing done in the stack task. Set an application so processing can complete in the application task if extensive additional processing beyond storing the attribute write value in the profile is required.