Argox PA-20 Basic Programming Manual User Manual
Page 102

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:
GET_BT_ERROR Meaning
1
Search OK.
5
Search fail, please search again.
6
The terminal is not PT-20B.
7
Bluetooth module power disable,
please run BT_ SART.
10
Bluetooth already connect.
Purpose: To get other bluetooth device information after the search.
Syntax: A$=BT_GETDEVICEINFO(N%)
Example:
…
S$=BT_GETDEVICEINFO(1)
CLS
DEVICEAddress$=LEFT$(S$,16)
PRINT "DEVICEAddress:";DEVICEAddress$
DEVICEName$=MID$(S$,17,20)
PRINT "DEVICEName:";DEVICEName$
…
Description: A$ is a string variable indicating the PT-20B Bluetooth
information.Format of string as show below:
A$(Length) Meaning
1~16
Device MAC addresses.
17~36
Device name.
N% is an integer variable indicating which device information you
want to get.
Purpose: For bluetooth disconnect alert.
Syntax: BT_DISCONNECTALERT(N1%,N2%)
Example: BT_DISCONNECTALERT(1,0)
„
Only beep one time for disconnect
Description: This command can prompt you that bluetooth disconnect after
connect.