Argox PA-20 Basic Programming Manual Manual de usuario Pagina 102

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 143
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 101
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.
BT_GETDEVICEINFO
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.
BT_DISCONNECTALERT
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.
Vista de pagina 101
1 2 ... 97 98 99 100 101 102 103 104 105 106 107 ... 142 143

Comentarios a estos manuales

Sin comentarios