User Manual

Table Of Contents
157
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
Example
result = Connect(Devices[0]);
if(result != "Success")
{
MessageBox("Failed to connect!");
}
Disconnect()
Disconnect(Address)
Return value
“Success”
“Failure”
“Timed out”
Comments
Closes the ACL connection with the specified device
Example
result = Disconnect(Devices[0]);
if(result != "Success")
{
MessageBox("Failed to disconnect!");
}
DoInquiry()
DoInquiry(IAC, Timeout)
Parameter Meaning Default Value Comments
Address Bluetooth
address of
device to con-
nect with
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
5