what does charinstance mean in function CyBle_EsssSetCharacteristicValue

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

what does charinstance mean in function CyBle_EsssSetCharacteristicValue ?

0 Likes
1 Reply
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Kai1: This is the definition of this Sets the characteristic value of the service in the local database.
Parameters:
charIndex The index of the service characteristic. Starts with zero.

   

charInstance The instance number of the characteristic specified by "charIndex".
attrSize The size (in Bytes) of the characteristic value attribute.
attrValue The pointer to the characteristic value data that should be stored in the GATT database.

   

It Returns:
A return value is of type CYBLE_API_RESULT_T.
1) CYBLE_ERROR_OK - The request handled successfully.
2) CYBLE_ERROR_INVALID_PARAMETER - Validation of the input parameter failed.
3) CYBLE_ERROR_GATT_DB_INVALID_ATTR_HANDLE - An optional characteristic is absent.

0 Likes