This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

sd_ble_gatts_hvx returns unexpected value when indication not enabled

The API for sd_ble_gatts_hvx says that NRF_ERROR_INVALID_STATE is returned when no indications are enabled.

 * @retval ::NRF_ERROR_INVALID_STATE One or more of the following is true:
 *                                   - Invalid Connection State
 *                                   - Notifications and/or indications not enabled in the CCCD
 *                                   - An ATT_MTU exchange is ongoing

However, when I call sd_ble_gatts_hvx in this scenario I receive BLE_ERROR_GATTS_SYS_ATTR_MISSING

Is this a bug or inaccurate documentation? Something else?

Parents Reply Children
No Data
Related