Cy_BLE_GATTS_WriteAttributeValuePeer() function is used to write to the value field of the specified attribute in the GATT database. We have to specify the attribute handle before calling this function using "myHvp.attrhandle=0x000F". You can find list of handles in BLE_Config.h file.
Please refer to the attached example project in which I'm writing one byte of data from Cysmart to PSoC6 and these values are updating in the GATT Database. Also, you can read the data values on Cysmart.
Please let me know if this helps.
First thanks for you response. It helped me a lot actually! With your explanations and your example project I can now send datas from PSoC6 to CySmart.
Thanks a lot again!