User Manual

Table Of Contents
186
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
Trace("Country code is: 0x", result[1], "\n");
}
HCIReadCurrentIACLAP()
HCIReadCurrentIACLAP()
Return value
Returns a list with two values: status and Current IAC LAP.
Status (element 0) is one of the following:
“Success”
“Failure”
Current IAC LAP (element 1) is the 3-byte value of the LAPs (Lower
Address Part) that make up the current IAC (Inquiry Access Code).
Comments
Reads the number and values of the currently used IAC LAPs.
Example
result = HCIReadCurrentIACLAP();
if(result[0] == "Success")
{
Trace("Current number of used IAC LAPs is: ", result[1],
"\n");
if(result[1] > 0)
{
Trace("Currently used IAC LAPs are:");
for(i = 0; i < result[1]; i = i + 1)
{
Trace(" 0x", result[2 + i]);
}
Trace("\n\n");
}
}
Parameter Meaning Default Value Comments
N/A