KNX IoT
KNX IoT Point API stack implementation
oc_resource_s Struct Reference

resource structure More...

#include <oc_ri.h>

Data Fields

oc_content_format_t content_type
 the content format that the resource supports, e.g. More...
 
oc_request_handler_t delete_handler
 callback for DELETE More...
 
size_t device
 device index More...
 
oc_string_t dpt
 dpt of the resource More...
 
uint8_t fb_instance
 function block instance, default = 0 More...
 
oc_request_handler_t get_handler
 callback for GET More...
 
oc_properties_cb_t get_properties
 callback for get properties More...
 
oc_interface_mask_t interfaces
 supported interfaces More...
 
const bool is_const
 Whether the associated resource data is readonly. More...
 
oc_string_t name
 name of the resource (e.g. More...
 
struct oc_resource_snext
 next resource More...
 
uint16_t observe_period_seconds
 observe period in seconds More...
 
oc_request_handler_t post_handler
 callback for POST More...
 
oc_resource_properties_t properties
 properties (as bit mask) More...
 
oc_request_handler_t put_handler
 callback for PUT More...
 
oc_resource_data_t * runtime_data
 Runtime modifiable data. More...
 
oc_properties_cb_t set_properties
 callback for set properties More...
 
oc_string_array_t types
 "rt" types of the resource More...
 
oc_string_t uri
 uri of the resource More...
 

Detailed Description

resource structure

Definition at line 481 of file oc_ri.h.

Field Documentation

◆ content_type

oc_content_format_t content_type

the content format that the resource supports, e.g.

only 1 at the moment

Definition at line 490 of file oc_ri.h.

◆ delete_handler

oc_request_handler_t delete_handler

callback for DELETE

Definition at line 496 of file oc_ri.h.

◆ device

size_t device

device index

Definition at line 484 of file oc_ri.h.

◆ dpt

oc_string_t dpt

dpt of the resource

Definition at line 488 of file oc_ri.h.

◆ fb_instance

uint8_t fb_instance

function block instance, default = 0

Definition at line 500 of file oc_ri.h.

◆ get_handler

oc_request_handler_t get_handler

callback for GET

Definition at line 493 of file oc_ri.h.

◆ get_properties

oc_properties_cb_t get_properties

callback for get properties

Definition at line 497 of file oc_ri.h.

◆ interfaces

oc_interface_mask_t interfaces

supported interfaces

Definition at line 489 of file oc_ri.h.

◆ is_const

const bool is_const

Whether the associated resource data is readonly.

Definition at line 501 of file oc_ri.h.

◆ name

oc_string_t name

name of the resource (e.g.

"n")

Definition at line 485 of file oc_ri.h.

◆ next

struct oc_resource_s* next

next resource

Definition at line 483 of file oc_ri.h.

◆ observe_period_seconds

uint16_t observe_period_seconds

observe period in seconds

Definition at line 499 of file oc_ri.h.

◆ post_handler

oc_request_handler_t post_handler

callback for POST

Definition at line 495 of file oc_ri.h.

◆ properties

properties (as bit mask)

Definition at line 492 of file oc_ri.h.

◆ put_handler

oc_request_handler_t put_handler

callback for PUT

Definition at line 494 of file oc_ri.h.

◆ runtime_data

oc_resource_data_t* runtime_data

Runtime modifiable data.

Definition at line 502 of file oc_ri.h.

◆ set_properties

oc_properties_cb_t set_properties

callback for set properties

Definition at line 498 of file oc_ri.h.

◆ types

oc_string_array_t types

"rt" types of the resource

Definition at line 487 of file oc_ri.h.

◆ uri

oc_string_t uri

uri of the resource

Definition at line 486 of file oc_ri.h.


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