Zephyr Project API  3.4.0
A Scalable Open Source RTOS
coap_client_request Struct Reference

Representation of a CoAP client request. More...

#include <coap_client.h>

Data Fields

enum coap_method method
 
bool confirmable
 
const char * path
 
enum coap_content_format fmt
 
uint8_tpayload
 
size_t len
 
coap_client_response_cb_t cb
 
struct coap_client_optionoptions
 
uint8_t num_options
 
void * user_data
 

Detailed Description

Representation of a CoAP client request.

Field Documentation

◆ cb

coap_client_response_cb_t coap_client_request::cb

Callback when response received

◆ confirmable

bool coap_client_request::confirmable

CoAP Confirmable/Non-confirmable message

◆ fmt

enum coap_content_format coap_client_request::fmt

Content format to be used

◆ len

size_t coap_client_request::len

Length of the payload

◆ method

enum coap_method coap_client_request::method

Method of the request

◆ num_options

uint8_t coap_client_request::num_options

Number of extra options

◆ options

struct coap_client_option* coap_client_request::options

Extra options to be added to request

◆ path

const char* coap_client_request::path

Path of the requested resource

◆ payload

uint8_t* coap_client_request::payload

User allocated buffer for send request

◆ user_data

void* coap_client_request::user_data

User provided context


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