Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
coap_resource Struct Reference

Description of CoAP resource. More...

#include <coap.h>

Data Fields

coap_method_t get
 Which function to be called for each CoAP method.
 
coap_method_t post
 
coap_method_t put
 
coap_method_t del
 
coap_method_t fetch
 
coap_method_t patch
 
coap_method_t ipatch
 
coap_notify_t notify
 Notify function to call.
 
const char *const * path
 Resource path.
 
void * user_data
 User specific opaque data.
 
sys_slist_t observers
 List of resource observers.
 
int age
 Resource age.
 

Detailed Description

Description of CoAP resource.

CoAP servers often want to register resources, so that clients can act on them, by fetching their state or requesting updates to them.

Field Documentation

◆ age

int coap_resource::age

Resource age.

◆ del

coap_method_t coap_resource::del

◆ fetch

coap_method_t coap_resource::fetch

◆ get

coap_method_t coap_resource::get

Which function to be called for each CoAP method.

◆ ipatch

coap_method_t coap_resource::ipatch

◆ notify

coap_notify_t coap_resource::notify

Notify function to call.

◆ observers

sys_slist_t coap_resource::observers

List of resource observers.

◆ patch

coap_method_t coap_resource::patch

◆ path

const char* const* coap_resource::path

Resource path.

◆ post

coap_method_t coap_resource::post

◆ put

coap_method_t coap_resource::put

◆ user_data

void* coap_resource::user_data

User specific opaque data.


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