KNX IoT
KNX IoT Point API stack implementation
oc_buffer_settings.h File Reference

CoAP message buffer setting implementation. More...

#include <stddef.h>

Go to the source code of this file.

Functions

long oc_get_block_size (void)
 retrieve the block size More...
 
long oc_get_max_app_data_size (void)
 retrieve the max application data size More...
 
long oc_get_mtu_size (void)
 retrieve the currently used MTU size More...
 
void oc_set_max_app_data_size (size_t size)
 set max application data size (e.g. More...
 
int oc_set_mtu_size (size_t mtu_size)
 sets the size of the MTU to be used More...
 

Detailed Description

CoAP message buffer setting implementation.

Definition in file oc_buffer_settings.h.

Function Documentation

◆ oc_get_block_size()

long oc_get_block_size ( void  )

retrieve the block size

Returns
long the block size in bytes

◆ oc_get_max_app_data_size()

long oc_get_max_app_data_size ( void  )

retrieve the max application data size

Returns
long size in bytes

◆ oc_get_mtu_size()

long oc_get_mtu_size ( void  )

retrieve the currently used MTU size

Returns
long the MTU size in bytes

◆ oc_set_max_app_data_size()

void oc_set_max_app_data_size ( size_t  size)

set max application data size (e.g.

buffer size of the messages)

Parameters
sizesize in bytes

◆ oc_set_mtu_size()

int oc_set_mtu_size ( size_t  mtu_size)

sets the size of the MTU to be used

Parameters
mtu_sizesize in bytes
Returns
int 0-success