
code. Possible error codes and their interpretation are listed below:
GET_BT_ERROR Meaning
1
Write OK.
2
Parameter error, please check your
parmeter.
6
The terminal is not
TPC7030
B.
7
Bluetooth module power disable,
please run BT_ SART.
9
Bluetooth not connect to other
bluetooth device, please run
BT_OPEN.
Purpose
Κ
Read characters from Bluetooth module.
Syntax
Κ
A$=BT_READ$(N%)
Example
Κ
STR1$=BT_READ$(1)
Description
Κ
If Bluetooth is connected, this command can read characters from
Bluetooth module.
A$
is a string variable to be assigned to the data.
N%
is an integer variable indicating number of bytes to be read
from other Bluetooth device.
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
Read OK.
2
Parameter error, please check your
parmeter.
6
The terminal is not
TPC7030
B.
7
Bluetooth module power disable,
please run BT_ SART.
9
Bluetooth not connect to other
bluetooth device, please run
BT_OPEN.
Purpose
Κ
Get Bluetooth information.
Syntax
Κ
A$=BT_GETLOCALINFO$
Example
Κ
…
S1$=BT_GETLOCALINFO$
LocalAddress$=LEFT$(S1$,16)
T P C 7 0 3 0
Programming Manual Ver. 1.00
96/131