SWRU271I October 2010 – January 2020 CC2540 , CC2540T , CC2541 , CC2541-Q1 , CC2640R2F
When powering on or resetting the device, the application builds the GATT table by using the GATTServApp module to add services. Each service is a list of attributes with UUIDs, values, permissions, and read/write call-backs. Figure 5-12 shows that this information is passed through the GATTServApp to GATT and stored in the stack. Do this in the application initialization function, that is, simpleBLEPeripheral_init():