User Manual

Table Of Contents
177
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
HCIMasterLinkKey()
HCIMasterLinkKey(KeyFlag)
Return values
Returns a list with three values: status, HCI handle, and key flag.
Status (element 0) is one of the following:
“Success”
“Failure”
HCI handle (element 1) is the handle for the ACL connection.
Key flag (element 2) is the key flag (either 0 or 1).
Comments
This command is used to force the master of the piconet to use temporary
or semi-permanent link keys.
Example
result = HCIMasterLinkKey(0);
Trace("Merlin's Wand MasterLinkKey returned:", result[0],
"\n");
if(result[0] == "Success")
{
Trace(" Connection Handle : 0x", result[1], "\n");
Trace(" Key Flag : 0x", result[2], "\n");
}
HCIParkMode()
HCIParkMode(Address, BeaconMaxInterval,
BeaconMinInterval)
Parameter Meaning Default Value Comments
KeyFlag 0x0 use semi-permanent link keys
0x1 use temporary link keys
Parameter Meaning Default Value Comments
Address Bluetooth
address of
device in
question