User`s guide

130
CipherLab BASIC Compiler
User's Guide
Remarks This command is to be replaced by GET_NET_PARAMETER$.
Example
NetSetting$ = SOCKET_IP$(0)
See Also
GET_NET_PARAMETER$, TCP_ERR_CODE
SOCKET_OPEN
Purpose
To check if the connection is open or not.
Syntax
A% = SOCKET_OPEN(N%)
Remarks
"A%" is an integer variable to be assigned to the result.
Value Meaning
0
3000
3004
3012
Normal - connection is open
Invalid connection number
Connection is closed
Never run START TCPIP
"N%" is an integer variable in the range of 0 to 3, indicating the connection number.
Example
ConnectState% = SOCKET_OPEN(0)
See Also
TCP_ERR_CODE, TCP_OPEN
START TCPIP
Purpose
To enable communication via TCP/IP.
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.
For the 8x60 series, START TCPIP is to enable its built-in Bluetooth module. It
also supports START TCPIP(3) to activate the GPRS functionality on the
mobile phone via its built-in Bluetooth.
For the 8x70 series, START TCPIP is to enable its built-in 802.11b module.
For the CPT-8500, START TCPIP or START TCPIP(0) is to enable its
optional 802.11b module by default.
To enable its built-in Bluetooth module, you have to use START TCPIP(1).
To activate its own GPRS functionality, use START TCPIP(2).
To activate the mobile’s GPRS functionality, use START TCPIP(3).