Metrologic Optimus S Programming Manual page 143

"c" programming guide
Table of Contents

Advertisement

CheckNetStatus
Purpose
To check on networking status from the system.
Syntax
int CheckNetStatus (int index);
Example
int DhcpEnable;
unsigned char IP[4];
...........................
Description
This routine checks on the current networking status specified by index.
Return
See values listed in NETSTATUS and BTSTATUS structures.
GetBTStatus, GetNetStatus
See Also
Chapter 3 Terminal Specific Function Library
DhcpEnable = 1;
SetNetParameter ((void*) &DhcpEnable, P_DHCP_ENABLE);
if (NetInit() < 0) {
printf ("Initialization Fail");
...................
}
while (!CheckNetStatus (NET_IPReady)) OSTimeDly (10);
GetNetParameter ((void*) &IP, P_LOCAL_IP);
printf ("IP = %d.%d.%d.%d, IP[0], IP[1], IP[2], IP[3]);
137

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents