Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
|
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. | |
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.
int coap_resource::age |
Resource age.
coap_method_t coap_resource::del |
coap_method_t coap_resource::fetch |
coap_method_t coap_resource::get |
Which function to be called for each CoAP method.
coap_method_t coap_resource::ipatch |
coap_notify_t coap_resource::notify |
Notify function to call.
sys_slist_t coap_resource::observers |
List of resource observers.
coap_method_t coap_resource::patch |
const char* const* coap_resource::path |
Resource path.
coap_method_t coap_resource::post |
coap_method_t coap_resource::put |
void* coap_resource::user_data |
User specific opaque data.