- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, after calling Cy_BLE_GATTS_SendNotification(&appConnHandle, &handleValuePair); I'm getting result value of 0x17. How I could understand what actual error code it is? Is it CY_BLE_ERROR_GATT_DB_INVALID_ATTR_HANDLE? Doesn't make any sense, since in the PDL documentation there is no such return value for SendNotification.
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi AlBo_1871926
Please refer to cy_en_ble_api_result_t enum for error details. We have following format for error:
CY_PDL_STATUS_ERROR | CY_BLE_ID | <ERROR_NUMBER>, where
- CY_PDL_STATUS_ERROR - (2ul << 16u),
- CY_BLE_ID - (5ul << 18u) and
- ERROR_NUMBER - 1...26. So 0x160017 is CY_BLE_ERROR_NTF_DISABLED.
Thanks,
Nazar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi AlBo_1871926
Please refer to cy_en_ble_api_result_t enum for error details. We have following format for error:
CY_PDL_STATUS_ERROR | CY_BLE_ID | <ERROR_NUMBER>, where
- CY_PDL_STATUS_ERROR - (2ul << 16u),
- CY_BLE_ID - (5ul << 18u) and
- ERROR_NUMBER - 1...26. So 0x160017 is CY_BLE_ERROR_NTF_DISABLED.
Thanks,
Nazar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, that helped a lot!