API unique to DIS designs configured as a GATT Server role.
A letter 's' is appended to the API name: Cy_BLE_DISS_
◆ Cy_BLE_DISS_SetCharacteristicValue()
Sets a characteristic value of the service, which is identified by charIndex, to the local database.
- Parameters
-
charIndex | The index of a service characteristic. |
attrSize | The size of the characteristic value attribute. |
attrValue | The pointer to the characteristic value data that should be stored to the GATT database. |
- Returns
- A return value of type cy_en_ble_api_result_t.
Error Codes | Description |
CY_BLE_SUCCESS | The request was handled successfully. |
CY_BLE_ERROR_INVALID_PARAMETER | Validation of the input parameter failed. |
◆ Cy_BLE_DISS_GetCharacteristicValue()
Gets a characteristic value of the service, which is identified by charIndex, from the GATT database.
- Parameters
-
charIndex | The index of a service characteristic. |
attrSize | The size of the characteristic value attribute. |
attrValue | The pointer to the location where characteristic value data should be stored. |
- Returns
- A return value of type cy_en_ble_api_result_t.
Error Codes | Description |
CY_BLE_SUCCESS | The request was handled successfully. |
CY_BLE_ERROR_INVALID_PARAMETER | Validation of the input parameter failed. |