Metrologic Optimus S Programming Manual page 127

"c" programming guide
Table of Contents

Advertisement

SetNetConfig
Purpose
To write the whole networking configurations to the system.
Syntax
void SetNetConfig (struct NETCONFIG *config);
Example
struct NETCONFIG nc;
struct NETSTATUS ns;
..............................
GetNetConfig (&nc);
nc.DhcpEnable = 1;
SetNetConfig (&nc);
if (NetInit() < 0) {
}
do {
} while (!ns.IPReady);
Description
This routine writes the whole network configurations to the system. Before
writing, the application should make sure that every setting is significant. The
best way is calling GetNetConfig first to get the original settings and change
them one by one.
The application should reserve enough stack or define a static variable to store
the structure of NETCONFIG.
It is recommended to use SetNetParameter() to set the parameters for the
stability and compatibility in the future. NetInit() will initialize the networking
according to the configurations written.
Return
None
GetNetConfig, SetNetParameter
See Also
Chapter 3 Terminal Specific Function Library
printf ("Initialization Fail");
..................................
OSTimeDly (10);
GetNetStatus (&ns);
121

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents