Changing the length of an Attribute | Cypress Semiconductor
Changing the length of an Attribute
PSoC Creator, the BLE component has the ability to configure the length (and type) of an Attribute (when configuring the corresponding Characteristic). Will this length then be fixed for that Characteristic, that is, all Attribute's has a predefined type and length by (custom or official) specification? Or can an Attribute's length be changed in real time? Or does the Attribute database store data-length pairs, and the length we type in PSoC Creator specify a maximum allowed length?
Consider the attribute type "utf8s". Is this a null-terminated string?
I thought the function
CyBle_GattsWriteAttributeValue() could define the length of the Attribute in addition to data, but it responds negative if the argument has a length stricly larger than the one defined in PSoC Creator!