Doxygen/Docbook Link Test
 All Data Structures Functions Variables Typedefs Modules Pages
config_app.c

Configure application-wide settings. More...

Functions

void APP_InitializeConfig (CAppConfig *config)
 
CDataHubPoint * APP_CreateAndSetPoint (CTCPConnectionContainer *cc, CTCPClient *client, char *name, int flags, INT64 value)
 
void APP_SetPointInt (CDataHubPoint *point, INT64 value)
 
void APP_SetPointDouble (CDataHubPoint *point, double value)
 
void APP_SetPointString (CDataHubPoint *point, char *value)
 

Detailed Description

Configure application-wide settings.

Configure the application parameters here. If you have permanent storage, like a USB memory or access to the flash file system, load the configuration from there.

Function Documentation

void APP_InitializeConfig ( CAppConfig config)

Initialize the application configuration object. This object must be allocated before entry to this function, and is typically created as a global static variable in the mainline_c mainline. You can modify this structure to suit your application requirements.

In the example code the contents of this object are hard-coded. In a production system you may prefer to store this information in persistent storage and then read it into the CAppConfig object here.

Parameters
config