
PT-Basic Programming Manual Ver. 1.00 101/143
N1% is an integer variable.It will return how many devices are
found.
N2% is an integer variable.It will tell the command that will return
device name or not.
You can use the “GET_BT_ERROR” command to get the error
code. Possible error codes and their interpretation are listed below:
Search fail, please search again.
The terminal is not PT-20B.
Bluetooth module power disable,
please run BT_ SART.
Bluetooth already connect.
To get other bluetooth device information after the search.
…
S$=BT_GETDEVICEINFO(1)
CLS
DEVICEAddress$=LEFT$(S$,16)
PRINT "DEVICEAddress:";DEVICEAddress$
DEVICEName$=MID$(S$,17,20)
PRINT "DEVICEName:";DEVICEName$
…
A$ is a string variable indicating the PT-20B Bluetooth
information.Format of string as show below:
N% is an integer variable indicating which device information you
want to get.
For bluetooth disconnect alert.
BT_DISCONNECTALERT(N1%,N2%)
BT_DISCONNECTALERT(1,0)
„Only beep one time for disconnect
This command can prompt you that bluetooth disconnect after
connect.
Commenti su questo manuale