Solvline Eddy DK Ver 2.20 User Manual

Page 47

Advertising
background image

Chapter 6. Library

6-4

When the parameter type other than ‘B’ ,’K’, ‘F’ are called, the function will
return “0.00” as version information.

SB_ReadConfig

Function

Reads Eddy’s operating environment configuration file.

Format

void SB_ReadConfig (char *FileName, Struct SB_CONFIG *cfg);

Parameter

FileName

File name including the path file is located.

/etc/sb_config,

/etc/sb_default_config

/flash/sb_config

*cfg

Point of the buffer where the environment configuration
file is read and saved.

Returns None

Notice

Environment configuration file managed by Eddy is located at /etc, /flash.
“/etc/sb_config” file is temporary environment configuration file where the
modified configuration is applied when the configuration is changed via web
or telnet. Every eddy application will refer to this file for the operation.

“/etc/sb_default_config” is configuration file used for Eddy’s factory default
configuration which will be applied to Eddy’s environment configuration
when factory default command from web or telnet is given.

“/Flash/sb_config” is changed to “/etc/sb_config” when the configuration is
changed via web or telnet. This file stores modified information even when
the Eddy’s power is reset, and helps Eddy to operate as configured by Eddy
reading this information when Eddy is first booted.

(Please see /Eddy_APPs/include/sb_config.h)

SB_WriteConfig

Function

Saves Eddy’s operating environment configuration information into file.

Format

void SB_WriteConfig (char *FileName, Struct SB_CONFIG *cfg);

Parameter

FileName

File name including path where the saved file will be
located at

/etc/sb_config,

/flash/sb_config

*cfg

Struct buffer point which stores the environment
configuration information to be saved

Returns None

Notice

Advertising