Metrologic Optimus S Programming Manual page 185

"c" programming guide
Table of Contents

Advertisement

b) Before receiving data from the network, call socket_hasdata() to check if there is
data in the buffer. Then, call Nread() to receive data on the network.
Note: In case of an abnormal break during PPP or DUN-GPRS connection,
CheckNetStatus(NET_IPReady) will return -1.
Refer to the Supplemental Functions section for other useful functions.
Close a Connection:
Call Nclose() to terminate a particular connection, i.e. conno returned by Nopen(),
when the application program does not use it any more.
Termination of Networking Protocol Stack & Wireless Module:
When the application program wishes to stop using the network, call NetClose() to
terminate networking and shut down the power to the module so that it can save
power. To enable the network again, it is necessary to call NetInit() again.
Note: After calling NetClose(), any previous network connection and data will be lost.
Chapter 3 Terminal Specific Function Library
179

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents