Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
coap_client_tcp_request Struct Reference

Representation of a CoAP TCP client request. More...

#include <zephyr/net/coap_client_tcp.h>

Data Fields

enum coap_method method
 Method of the request.
char path [MAX_TCP_PATH_SIZE]
 Path of the requested resource.
enum coap_content_format fmt
 Content format to be used.
const uint8_tpayload
 User allocated buffer for send request.
size_t len
 Length of the payload.
coap_client_tcp_payload_cb_t payload_cb
 Optional payload callback.
coap_client_tcp_response_cb_t cb
 Callback when response received.
struct coap_client_tcp_option options [MAX_TCP_EXTRA_OPTIONS]
 Extra options to be added to request.
uint8_t num_options
 Number of extra options.
void * user_data
 User provided context.

Detailed Description

Representation of a CoAP TCP client request.

Field Documentation

◆ cb

coap_client_tcp_response_cb_t coap_client_tcp_request::cb

Callback when response received.

◆ fmt

enum coap_content_format coap_client_tcp_request::fmt

Content format to be used.

◆ len

size_t coap_client_tcp_request::len

Length of the payload.

◆ method

enum coap_method coap_client_tcp_request::method

Method of the request.

◆ num_options

uint8_t coap_client_tcp_request::num_options

Number of extra options.

◆ options

struct coap_client_tcp_option coap_client_tcp_request::options[MAX_TCP_EXTRA_OPTIONS]

Extra options to be added to request.

◆ path

char coap_client_tcp_request::path[MAX_TCP_PATH_SIZE]

Path of the requested resource.

◆ payload

const uint8_t* coap_client_tcp_request::payload

User allocated buffer for send request.

◆ payload_cb

coap_client_tcp_payload_cb_t coap_client_tcp_request::payload_cb

Optional payload callback.

◆ user_data

void* coap_client_tcp_request::user_data

User provided context.


The documentation for this struct was generated from the following file: