Argox PA-20 Basic Programming Manual User Manual

Page 100

Advertising
background image

PT-Basic Programming Manual Ver. 1.00

99/143

PRINT "LocAdd:";LocalAddress$

LocalName$=MID$(S1$,17,20)

PRINT "LocName:";LocalName$

LocalSec%=ASC(MID$(S1$,37,4))

PRINT "LocalSec:";LocalSec%

LocalEnc%=ASC(MID$(S1$,41,4))

PRINT "LocalEnc:";LocalEnc%

LocalTimeout%=ASC(MID$(S1$,45,4))

PRINT "LocalTimeout:";LocalTimeout%

LocalRes%=ASC(MID$(S1$,49,4))

PRINT "LocalRes:";LocalRes%

LinkAddress$=MID$(S1$,53,16)

PRINT "LinkAddress:";LinkAddress$

PinCode$=MID$(S1$,69,20)

PRINT "PinCode:";PinCode$

Description: A$ is a string variable indicating the PT-20B Bluetooth

information.Format of string as show below:

A$(Length) Meaning

1~16

PT-20B Bluetooth MAC address.(Cannot

change.)

17~36

PT20B Bluetooth device name

37~40

PT-20B Bluetooth security mode, if 1(on) else

0(off)

41~44

PT-20B Bluetooth encryption mode, if 1(on) else

0(off)

45~48

PT-20B Bluetooth inquiry timeout, the value

from 1(1.28 seconds) to 48(61.44 seconds).

49~52

PT-20B Bluetooth inquiry max response, the

value from 1 to 10.

53~68

To linking device address.

Advertising