PI1X Basic Programming Manual Ver. 1.10
98/156
Description
:
Several key arguments as below:
S1$
PI-1X Bluetooth device name(Allow 1~16
characters)
N1%
PI-1X Bluetooth security mode, set 1(on) or 0(off)
N2%
PI-1X Bluetooth encryption mode, set 1(on) or
0(off)
N3%
PI-1X Bluetooth inquiry timeout set, the value
from 1(1.28 seconds) to 48(61.44 seconds).
N4%
PI-1X Bluetooth inquiry max response, the value
from 1 to 10.
S2$
Set link device address(Allow 1~12 characters)
S3$
Set PIN code(Allow 4~16 characters)
You can use the GET_FILETRANS_ERROR command to
get the error code. Possible error codes and their interpretation
are listed below:
GET_FILETRANS_ERROR Meaning
-1
Set OK.
-2
Selected LinkingPort is
using.
-4
Parameter error.
Purpose
:
Set transmission WIFI information.
Syntax
:
FILE_TRANS_SETWIFI(N1%,S1$,S2$,S3$,S4$,N2%,N3%,
S5$,N4%,S5$)
Example
:
FILE_TRANS_SETWIFI(0,IP$,MK$,GW$,SSID$,1,2,
CONNIP$,PORT%,KEY$)
FILE_TRANS_SETWIFI(1,"","","", SSID$,1,2,
CONNIP$,PORT%,KEY$) 'Use DHCP
Description
:
Several key arguments as below:
N1%
PI-1X WIFI Dhcp mode, set 1(enable) or 0(disable)
S1$
WIFI module IP address.(xxx.xxx.xxx.xxx)
S2$
WIFI module subnet mask.(xxx.xxx.xxx.xxx)
S3$
WIFI module getway.(xxx.xxx.xxx.xxx)
S4$
WIFI accesspoint SSID name.
N2%
PI-1X WIFI TX power, set 0(Low) 1(Medium) 2(High)
N3%
PI-1X WIFI security key type, set 0(disable) 1(WEP)
or 2(WPA2)
S5$
Remote TCP connect IP address.(xxx.xxx.xxx.xxx)