User Manual

Table Of Contents
187
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
HCIReadEncryptionMode()
HCIReadEncryptionMode()
Return values
Returns a list with two values: status and encryption mode.
Status (element 0) is one of the following:
“Success”
“Failure”
Encryption mode (element 1) is the one-byte encryption mode value.
(0=Encryption disabled; 1=Encryption enabled for point-to-point packets
only; 2=Encryption enabled for both point-to-point and broadcast packets.)
Comments
Reads the encryption mode value. This value controls whether the local
device requires encryption to the remote device at connection setup.
Example
result = HCIReadEncryptionMode();
Trace("HCIReadEncryptionMode returned: ", result[0], "\n");
if (result[0] == "Success")
{
Trace("Encryption mode is: 0x", result[1], "\n");
}
HCIReadLinkPolicySettings()
HCIReadLinkPolicySettings(Address)
Return value
Returns the following list of values: status and link policy settings.
Status (element 0) is one of the following:
“Success”
Parameter Meaning Default Value Comments
N/A
Parameter Meaning Default Value Comments
Address Bluetooth
address of
device in
question