Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
coap_resource Struct Reference

Description of CoAP resource. More...

#include <coap.h>

Data Fields

coap_method_t get
 
coap_method_t post
 
coap_method_t put
 
coap_method_t del
 
coap_notify_t notify
 
const char *const * path
 
voiduser_data
 
sys_slist_t observers
 
int 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

◆ del

coap_method_t coap_resource::del

◆ get

coap_method_t coap_resource::get

Which function to be called for each CoAP method

◆ notify

coap_notify_t coap_resource::notify

◆ observers

sys_slist_t coap_resource::observers

◆ path

const char* const* coap_resource::path

◆ post

coap_method_t coap_resource::post

◆ put

coap_method_t coap_resource::put

◆ user_data

void* coap_resource::user_data

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