Zigbee Protocol Controller 1.6.0
zigpc_config.c File Reference
#include <string.h>
#include "config.h"
#include "uic_version.h"
#include "zigpc_config.h"
#include "zigpc_config_validate.h"
#include "zigpc_config_fixt.h"

Functions

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

Variables

static const char * CONFIG_KEY_ZIGPC_SERIAL_PORT = "zigpc.serial"
 
static const char * DEFAULT_SERIAL_PORT = "/dev/ttyUSB0"
 
static const char * CONFIG_KEY_ZIGPC_USE_TC_WELL_KNOWN_KEY = "zigpc.tc_use_well_known_key"
 
static const bool DEFAULT_USE_TC_WELL_KNOWN_KEY = false
 
static const char * CONFIG_KEY_ZIGPC_DATASTORE_FILE = "zigpc.datastore_file"
 
static const char * DEFAULT_ZIGPC_DATASTORE_FILE = UIC_VAR_DIR "/zigpc.db"
 
static const char * CONFIG_KEY_ZIGPC_NCP_FIRMWARE_PATH = "zigpc.ncp_firmware_path"
 
static const char * CONFIG_FLAG_ZIGPC_NCP_UPDATE = "zigpc.ncp_update"
 
static const char * CONFIG_KEY_ZIGPC_OTA_PATH = "zigpc.ota_path"
 
static const char * ZIGPC_DEFAULT_OTA_PATH = UIC_VAR_DIR "/ota-files/"
 
static const char * CONFIG_FLAG_ZIGPC_POLL_ATTR_ONLY = "zigpc.poll_attr_only"
 
static const bool DEFAULT_POLL_ATTR_ONLY = true
 
static const char * CONFIG_USE_NETWORK_ARGS = "zigpc.use_network_args"
 
static const char * CONFIG_NETWORK_PANID = "zigpc.network_panid"
 
static const char * CONFIG_NETWORK_RADIO_POW = "zigpc.network_radio_power"
 
static const char * CONFIG_NETWORK_CHANNEL = "zigpc.network_channel"
 
static const char * CONFIG_KEY_ZIGPC_POLLING_RATE = "zigpc.attr_polling_rate_ms"
 
static const int ZIGPC_DEFAULT_POLLING_RATE_MS = 10000
 
static zigpc_config_t config
 

Variable Documentation

◆ config

zigpc_config_t config
static

◆ CONFIG_FLAG_ZIGPC_NCP_UPDATE

const char* CONFIG_FLAG_ZIGPC_NCP_UPDATE = "zigpc.ncp_update"
static

◆ CONFIG_FLAG_ZIGPC_POLL_ATTR_ONLY

const char* CONFIG_FLAG_ZIGPC_POLL_ATTR_ONLY = "zigpc.poll_attr_only"
static

◆ CONFIG_KEY_ZIGPC_DATASTORE_FILE

const char* CONFIG_KEY_ZIGPC_DATASTORE_FILE = "zigpc.datastore_file"
static

◆ CONFIG_KEY_ZIGPC_NCP_FIRMWARE_PATH

const char* CONFIG_KEY_ZIGPC_NCP_FIRMWARE_PATH = "zigpc.ncp_firmware_path"
static

◆ CONFIG_KEY_ZIGPC_OTA_PATH

const char* CONFIG_KEY_ZIGPC_OTA_PATH = "zigpc.ota_path"
static

◆ CONFIG_KEY_ZIGPC_POLLING_RATE

const char* CONFIG_KEY_ZIGPC_POLLING_RATE = "zigpc.attr_polling_rate_ms"
static

◆ CONFIG_KEY_ZIGPC_SERIAL_PORT

const char* CONFIG_KEY_ZIGPC_SERIAL_PORT = "zigpc.serial"
static

◆ CONFIG_KEY_ZIGPC_USE_TC_WELL_KNOWN_KEY

const char* CONFIG_KEY_ZIGPC_USE_TC_WELL_KNOWN_KEY = "zigpc.tc_use_well_known_key"
static

◆ CONFIG_NETWORK_CHANNEL

const char* CONFIG_NETWORK_CHANNEL = "zigpc.network_channel"
static

◆ CONFIG_NETWORK_PANID

const char* CONFIG_NETWORK_PANID = "zigpc.network_panid"
static

◆ CONFIG_NETWORK_RADIO_POW

const char* CONFIG_NETWORK_RADIO_POW = "zigpc.network_radio_power"
static

◆ CONFIG_USE_NETWORK_ARGS

const char* CONFIG_USE_NETWORK_ARGS = "zigpc.use_network_args"
static

◆ DEFAULT_POLL_ATTR_ONLY

const bool DEFAULT_POLL_ATTR_ONLY = true
static

◆ DEFAULT_SERIAL_PORT

const char* DEFAULT_SERIAL_PORT = "/dev/ttyUSB0"
static

◆ DEFAULT_USE_TC_WELL_KNOWN_KEY

const bool DEFAULT_USE_TC_WELL_KNOWN_KEY = false
static

◆ DEFAULT_ZIGPC_DATASTORE_FILE

const char* DEFAULT_ZIGPC_DATASTORE_FILE = UIC_VAR_DIR "/zigpc.db"
static

◆ ZIGPC_DEFAULT_OTA_PATH

const char* ZIGPC_DEFAULT_OTA_PATH = UIC_VAR_DIR "/ota-files/"
static

◆ ZIGPC_DEFAULT_POLLING_RATE_MS

const int ZIGPC_DEFAULT_POLLING_RATE_MS = 10000
static