Metrologic Optimus S Programming Manual page 136

"c" programming guide
Table of Contents

Advertisement

130
"C" Programming Guide For Optimus S/R
SetNetParameter
Purpose
To write one networking configuration item to the system.
Syntax
void SetNetParameter (void *setting, int index);
Example
int DhcpEnable;
unsigned char IP[4];
..............................
DhcpEnable = 1;
SetNetParameter ((void*) &DhcpEnable, P_DHCP_ENABLE);
if (NetInit() < 0) {
printf ("Initialization Fail");
..................................
}
do {
OSTimeDly (10);
GetNetStatus (&ns);
} while (!ns.IPReady);
GetNetParameter ((void*) &IP, P_LOCAL_IP);
printf ("IP = %d.%d.%d.%d", IP[0], IP[1], IP[2], IP[3]);
This routine writes one network configuration item to the system.
Description
The NetInit() routine will initialize the networking according to the
configurations written.
Return
None
See Also
GetNetParameter, SetNetConfig

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents