132
"C" Programming Guide For Optimus S/R
It is necessary for the application to check the status of IPReady (one of the
NetStatus items) before performing any networking operations.
NetInit() is to enable the default module, either Bluetooth PAN or
802.11b.
NetInit (3) enables the GPRS functionality on a mobile phone via
Bluetooth DUN.
NetInit (4) enables PPP connection via a modem cradle.
NetInit (5) enables PPP connection via direct RS-232.
Model#
Optimus
S
Optimus R
WLAN
---
---
NetInit()
Bluetooth PAN
NetInit()
NetInit()
---
Bluetooth
DUN-
GPRS
NetInit
(3)
NetInit
(3)
---
PPP via IR
NetInit
(4)
NetInit
(4)
NetInit
(4)
PPP via RS-232
---
NetInit
(5)
NetInit
(5)
Return
If successful, it returns 0.
On error, it returns -1. (Usually it is caused by hardware problems.)
See Also
GetNetStatus, NetClose
NetClose
Purpose
To shut down TCP/IP networking operations.
Syntax
int NetClose (void);
Example
val = NetClose();
Description
This routine shuts down the TCP/IP networking operations, and the power of
wireless modules is cut off. Networking operations can be restarted by calling
NetInit.
Return
If successful, it returns 0.
On error, it returns -1. (Usually it is caused by hardware problems.) (?)
See Also
NetInit
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...