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

expect NRF_SUCCESS ,the other return value meaning i must send repeat .yes or no???

NRF_SUCCESS Successfully queued a notification or indication for transmission, and optionally updated the attribute value. BLE_ERROR_INVALID_CONN_HANDLE Invalid Connection Handle. 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 NRF_ERROR_INVALID_ADDR Invalid pointer supplied. NRF_ERROR_INVALID_PARAM Invalid parameter(s) supplied. BLE_ERROR_INVALID_ATTR_HANDLE Invalid attribute handle(s) supplied. Only attributes added directly by the application are available to notify and indicate. BLE_ERROR_GATTS_INVALID_ATTR_TYPE Invalid attribute type(s) supplied, only characteristic values may be notified and indicated. NRF_ERROR_NOT_FOUND Attribute not found. NRF_ERROR_FORBIDDEN The connection's current security level is lower than the one required by the write permissions of the CCCD associated with this characteristic. NRF_ERROR_DATA_SIZE Invalid data size(s) supplied. NRF_ERROR_BUSY For BLE_GATT_HVX_INDICATION Procedure already in progress. Wait for a BLE_GATTS_EVT_HVC event and retry. BLE_ERROR_GATTS_SYS_ATTR_MISSING System attributes missing, use sd_ble_gatts_sys_attr_set to set them to a known value. NRF_ERROR_RESOURCES Too many notifications queued. Wait for a BLE_GATTS_EVT_HVN_TX_COMPLETE event and retry.

when i use sd_ble_gatts_hvx() send data ,the return value is above ,expect NRF_SUCCESS ,the other return value meaning i must send repeat .yes or no???

Related