Zigbee Protocol Controller 1.6.0
ZigPC Configuration system

This component is the source of the configuration parameters passed through command line arguments and/or the configuration file. More...

Classes

struct  zigpc_config_t
 Reference to options used by ZigPC. More...
 

Functions

const zigpc_config_tzigpc_get_config (void)
 Get the current configuration. This must only be called after zigpc_config_init. More...
 
int zigpc_config_init ()
 Initialize the configuration module. More...
 
sl_status_t zigpc_config_fixt_setup (void)
 Fixture for setting up the zigpc_config component. More...
 

Detailed Description

This component is the source of the configuration parameters passed through command line arguments and/or the configuration file.

ZIGPC Config Fixture.

The after initialization the configuration parameters are constant.

Fixture to initialize the zigpc_config from uic_main, to be used in ZigPC Configuration system

Function Documentation

◆ zigpc_config_fixt_setup()

sl_status_t zigpc_config_fixt_setup ( void  )

Fixture for setting up the zigpc_config component.

This will read configurations from config, and store it in zigpc_config.

Returns
SL_STATUS_OK for success, SL_STATUS_FAIL if an error occurred

◆ zigpc_config_init()

int zigpc_config_init ( )

Initialize the configuration module.

This must be called before Main Function for Contiki.

Returns
0 on success.

These are options which are supported both command line and in config file

NOTE: the following options are already configured in components/config/platform/posix/config.cpp:

  • mqtt.host
  • mqtt.port

◆ zigpc_get_config()

const zigpc_config_t * zigpc_get_config ( void  )

Get the current configuration. This must only be called after zigpc_config_init.