nRF51 IoT SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
coap_resource_t Struct Reference

Structure to hold a CoAP endpoint resource. More...

#include <coap_api.h>

Data Fields

uint8_t child_count
 
uint8_t permission
 
coap_resource_tp_sibling
 
coap_resource_tp_front
 
coap_resource_tp_tail
 
coap_method_callback_t callback
 
uint32_t ct_support
 
char name [COAP_RESOURCE_MAX_NAME_LEN+1]
 

Detailed Description

Structure to hold a CoAP endpoint resource.

Field Documentation

coap_method_callback_t coap_resource_t::callback

Pointer to the last added child in the list.

uint32_t coap_resource_t::ct_support

Callback to the resource handler.

char coap_resource_t::name[COAP_RESOURCE_MAX_NAME_LEN+1]

Bitmask to tell which content types are supported by the resource. Bit values available can be seen in Resource content type bitmask values.

coap_resource_t* coap_resource_t::p_front

Sibling pointer to the next element in the list.

coap_resource_t* coap_resource_t::p_sibling

Bitmask to tell which methods are permitted on the resource. Bit values available can be seen in Resource method permission bitmask values.

coap_resource_t* coap_resource_t::p_tail

Pointer to the beginning of the linked list.

uint8_t coap_resource_t::permission

Number of children in the linked list.