API unique to NDCS designs configured as a GATT Client role.
A letter 'c' is appended to the API name: Cy_BLE_NDCSC_
◆ Cy_BLE_NDCSC_GetCharacteristicValue()
Sends a request to peer device to set characteristic value of the Next DST Change service, which is identified by charIndex.
- Parameters
-
connHandle | The connection handle. |
charIndex | The index of a service characteristic. |
- Returns
- A return value of type cy_en_ble_api_result_t.
Error Codes | Description |
CY_BLE_SUCCESS | the request was sent successfully. |
CY_BLE_ERROR_INVALID_STATE | connection with the client is not established. |
CY_BLE_ERROR_INVALID_PARAMETER | validation of the input parameters failed. |
CY_BLE_ERROR_MEMORY_ALLOCATION_FAILED | Memory allocation failed. |
CY_BLE_ERROR_INVALID_OPERATION | Operation is invalid for this characteristic. |
- Events
- In case of successful execution (return value = CY_BLE_SUCCESS) the following events can appear:
If the NDCS service-specific callback is registered (with Cy_BLE_NDCS_RegisterAttrCallback):
Otherwise (if the NDCS service-specific callback is not registered):