User Manual

Table Of Contents
185
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
Timeout (element 1) is the two-byte value of the timeout, interpreted as
multiples of 0.625-msec intervals.
Comments
Reads the current timeout interval for connection. The timeout value
defines the time duration from when the Host Controller sends a Connec-
tion Request event until the Host Controller automatically rejects an
incoming connection.
Example
result = HCIReadConnectionAcceptTimeout();
Trace("ReadConnectionAcceptTimeout returned: ", result[0],
"\n");
if (result[0] == "Success")
{
Trace("Timeout value is: 0x", result[1], "\n");
}
HCIReadCountryCode()
HCIReadCountryCode()
Return values
Returns a list with two values: status and country code.
Status (element 0) is one of the following:
“Success”
“Failure”
Country code (element 1) is the one-byte country code value. (0=North
America and Europe; 1=France.)
Comments
Reads the country code value. This value defines which range of frequency
band of the ISM 2.4-GHz band is used by the device.
Example
result = HCIReadCountryCode();
Trace("HCIReadCountryCode returned: ", result[0], "\n");
if (result[0] == "Success")
{
Parameter Meaning Default Value Comments
N/A