1 Reply Latest reply on Jun 12, 2016 7:24 AM by rola_264706

    what does charinstance mean in function CyBle_EsssSetCharacteristicValue

    userc_38440

      what does charinstance mean in function CyBle_EsssSetCharacteristicValue ?

        • 1. Re: what does charinstance mean in function CyBle_EsssSetCharacteristicValue
          rola_264706

          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.