Download BASIC Programming Guide

Transcript
166
BASIC Programming Guide For Use with CipherLab BASIC Compiler
START TCPIP
8000, 8300, 8500
Purpose
To enable TCP/IP communication.
Syntax
START TCPIP
START TCPIP(N%)
Remarks
This routine is used to perform general initialization. It must be the first network
function call, and cannot be called again unless STOP TCPIP has been called.
"N%" is an integer variable, indicating which wireless module is to be used.
N%
Meaning
0
802.11b (default)
1
Bluetooth (PAN)
2
GPRS
3
Mobile's GPRS via Bluetooth (DUN)
4
PPP Connection via IR
5
PPP Connection via RS-232
6
Ethernet Connection via IR
Example
START TCPIP
See Also
OFF TCPIP, ON TCPIP GOSUB..., STOP TCPIP, TCP_ERR_CODE, TCP_OPEN
STOP TCPIP
' this is hardware-dependent
8000, 8300, 8500
Purpose
To disable TCP/IP communication.
Syntax
STOP TCPIP
Remarks
Example
STOP TCPIP
See Also
START TCPIP, TCP_OPEN