User Manual

Table Of Contents
206
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
“Failed: Device not found”
“Not connected”
“Invalid parameter”
Comments
Switches the current role of the device in the piconet.
Example
Device = '010203040506';
result = HCISwitchRole(Device, "Slave");
Trace("HCISwitchRole result is: ", result, "\n\n");
HCIWriteAuthenticationEnable()
HCIWriteAuthenticationEnable(AuthenticationEnable)
Return value
“Success”
“Failure”
“Invalid parameter”
Comments
Controls whether the local device is required to authenticate the remote
device at connection setup.
Example
result = HCIWriteAuthenticationEnable(0);
Parameter Meaning Default Value Comments
AuthenticationEnable Authentica-
tion value:
0 = Authenti-
cation dis-
abled;
1 = Authenti-
cation enabled
for all connec-
tions;
2-255 =
Reserved
0