ble_nus_data_send() can not work . SDK15.3.0. I have used two NRF52832. Based on the examples ble_app_gatts_c and ble_app_gatts,I have added nus service . Now central role can send message to peripheral role , but when peripheral role send message. The ble_nus_data_send () function can not run the part After VERIFY_PARAM_NOT_NULL(p_nus).How can I solve this problem.
uint8_t * p_data,
uint16_t * p_length,
uint16_t conn_handle)
{
ret_code_t err_code;
ble_gatts_hvx_params_t hvx_params;
ble_nus_client_context_t * p_client;
VERIFY_SUCCESS(err_code);
{
return NRF_ERROR_NOT_FOUND;
}
{
return NRF_ERROR_INVALID_STATE;
}
{
return NRF_ERROR_INVALID_PARAM;
}
hvx_params.p_data = p_data;
hvx_params.p_len = p_length;
hvx_params.type = BLE_GATT_HVX_NOTIFICATION;
}