Hciswitchrole(), Hciwriteauthenticationenable(), Hciswitchrole() hciwriteauthenticationenable() – Teledyne LeCroy Merlins Wand - Users Manual User Manual

Page 220

Advertising
background image

204

CATC M

ERLIN

S

W

AND

2.00

C

HAPTER

C

User’s Manual

Merlin’s Wand Scripting Commands

HCISwitchRole()

HCISwitchRole(Address, Role)

Return value

“Success”

“Failure”

“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”

Parameter

Meaning

Default Value

Comments

Address

Bluetooth

address of

device in

question

Role

Values: “Master”, “Slave”

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

Advertising