Inquiry(), Waitforconnect(), Inquiry() waitforconnect() – Teledyne LeCroy BPT - References Manual User Manual
Page 43
39
CATC S
CRIPTING
L
ANGUAGE
1.1
C
HAPTER
11
Reference Manual
BPT Primitives
Inquiry()
Inquiry( IAC, Timeout )
Return value
•
Array of Bluetooth addresses that were found during the inquiry.
•
“Failure”
•
“Inquiry in progress”
Comments
Calling
Inquiry()
will block for the duration specified by
Timeout
. The
function returns an array of devices that were found during the inquiry. These can
be addressed individually. The current version of BPT hardware only supports
GIAC inquiries.
Example
# Use default parameters
Devices = Inquiry( );
Trace( "First device was: ", Devices[ 0 ] );
WaitForConnect()
WaitForConnect( Address, TimeoutMS )
Return value
•
“Success”
Parameter
Meaning
Default Value
Comments
IAC
Inquiry
Access Code
GIAC
“GIAC”, or a 32-bit integer value
Timeout
Timeout in
units of 1.2
seconds
Parameter
Meaning
Default Value
Comments
Address
Bluetooth
address of
device to wait
for connec-
tion with
TimeoutMS
Timeout in
milliseconds
10000
(10 seconds)