KNX IoT
KNX IoT Point API stack implementation
oc_group_object_table_t Struct Reference

Group Object Table Resource (/fp/g) The payload is an array of objects. More...

#include <oc_knx_fp.h>

Data Fields

oc_cflag_mask_t cflags
 contents of cflags as bitmap More...
 
uint32_t * ga
 array of group addresses (unsigned integers) More...
 
int ga_len
 length of the array of ga identifiers More...
 
oc_string_t href
 contents of href More...
 
int id
 contents of id More...
 

Detailed Description

Group Object Table Resource (/fp/g) The payload is an array of objects.

Example (JSON):

[
{
"id": "1",
"href":"/LDSB1/SOO",
"ga":[2305, 2401],
"cflag":["r","w","t","u"] // note this is a integer
},
{
"id": "2",
"href":"/LDSB1/RSC",
"ga":[2306],
"cflag":["t"] // note this is an integer
}
]

cflag translation

string bit value
c 2 4
r 3 8
w 4 16
i 5 32
t 6 64
u 7 128

Key translation

Json Key Integer Value
id 0
href 11
ga 7
cflag 8

The structure stores the information. The structure will be used as an array. There are function to find

  • empty index in the array
  • find the index with a specific id
  • delete an index, e.g. delete the array entry of data (persistent)
  • make the entry persistent
  • free the data

Definition at line 118 of file oc_knx_fp.h.

Field Documentation

◆ cflags

contents of cflags as bitmap

Definition at line 122 of file oc_knx_fp.h.

◆ ga

uint32_t* ga

array of group addresses (unsigned integers)

Definition at line 124 of file oc_knx_fp.h.

◆ ga_len

int ga_len

length of the array of ga identifiers

Definition at line 123 of file oc_knx_fp.h.

◆ href

oc_string_t href

contents of href

Definition at line 121 of file oc_knx_fp.h.

◆ id

int id

contents of id

Definition at line 120 of file oc_knx_fp.h.


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