User Manual

Table Of Contents
203
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
Return value
“Success”
“Failure”
“Timed Out”
“Failed: Device not found”
“Not connected”
Comments
Enables and disables the link-level encryption for the address specified
Example
result = HCISetConnectionEncryption('6E8110AC0108', 0);
if(result != "Success")
{
MessageBox(result, "Failed to disable encryption!");
}
HCISetEventFilter()
HCISetEventFilter(FilterType, FilterConditionType,
Condition)
SetEncryption Boolean value
that indicates
whether to
enable or dis-
able encryp-
tion
00 or 1
A connection must be established and authenti-
cated before you can enable encryption success-
fully
Parameter Meaning Default Value Comments
FilterType Filter type:
0 = Clear all
filters;
1 = Inquiry
result;
2 = Connec-
tion setup;
3-255 =
Reserved
If value 0 is used, no other parameters should be
supplied.
Filter
Condition
Type
Type of filter
condition.
This parameter has different meanings depending
on the filter type.
Parameter Meaning Default Value Comments