Argox PA-20 Basic Programming Manual User Manual

Page 99

Advertising
background image

PT-Basic Programming Manual Ver. 1.00

98/143

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 PT-20B.

7

Bluetooth module power disable,

please run BT_ SART.

9

Bluetooth not connect to other

bluetooth device, please run

BT_OPEN.

BT_READ$

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 PT-20B.

7

Bluetooth module power disable,

please run BT_ SART.

9

Bluetooth not connect to other

bluetooth device, please run

BT_OPEN.

BT_GETLOCALINFO$

Purpose:

Get Bluetooth information.

Syntax: A$=BT_GETLOCALINFO$

Example:

S1$=BT_GETLOCALINFO$

LocalAddress$=LEFT$(S1$,16)

Advertising