User Manual

Table Of Contents
209
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
HCIWriteLinkPolicySettings()
HCIWriteLinkPolicySettings(Address, LinkPolicySettings)
Return value
“Success”
“Failure”
“Failed: Device not found”
“Not connected”
Comments
Writes the value for the Link_Policy_Settings parameter for the device.
Example
Device = '010203040506';
result = HCIWriteLinkPolicySettings(Device, 0xF);
Trace("HCIWriteLinkPolicySettings result is: ", result,
"\n\n");
HCIWriteLinkSupervisionTimeout()
HCIWriteLinkSupervisionTimeout(Address, Timeout)
Parameter Meaning Default Value Comments
Address Bluetooth
address of
device in
question
LinkPolicy
Settings
Range is 0x0000-0x8000.
Parameter Meaning Default Value Comments
Address Bluetooth
address of
device in
question
Timeout Number of
0.625-msec
intervals
before con-
nection
request times
out.
Range is 0x0001 to 0xFFFF (0.625 msec to 40.9
sec).