nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ ssf_client_send_raw_request()

int ssf_client_send_raw_request ( const struct ssf_client_srvc * srvc,
struct ssf_client_raw_data raw_req,
struct ssf_client_raw_data * raw_rsp )

Send a raw byte string request and wait for a response.

Parameters
[in]srvcA pointer to a service definition object.
[in]raw_reqRaw request data to be sent.
[out]raw_rspBuffer to copy the raw response into and size of the buffer.
Returns
0 on success -SSF_EINVAL if parameters are invalid. -SSF_EBUSY if transport is not initialized. -SSF_EPROTO if zcbor encode or decode fails. Either on client or server side. -SSF_ENOMEM if allocation of transport layer buffer fails. -SSF_EIO if sending with underlying transport fails. -SSF_EMSGSIZE if message is too long. -SSF_EPERM if mismatching domain id on server side. -SSF_ENOTSUP if service version number on client and server side does not match. -SSF_EPROTONOSUPPORT if the service is not found on server side.