Hcisetconnectionencryption() – Teledyne LeCroy Merlins Wand - Users Manual User Manual

Page 217

Advertising
background image

201

CATC M

ERLIN

S

W

AND

2.00

C

HAPTER

C

User’s Manual

Merlin’s Wand Scripting Commands

if(result != "Success")

{

MessageBox(result, "Failed to get role!");

}

else

{

Trace("Our role is: ", result, "\n\n");

}

HCISetConnectionEncryption()

HCISetConnectionEncryption(Address, SetEncryption)

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!");

}

Parameter

Meaning

Default Value

Comments

Address

Bluetooth

address of

device whose

encryption to

enable or dis-

able

SetEncryption

Boolean value

that indicates

whether to

enable or dis-

able encryp-

tion

0

0 or 1
A connection must be established and authenti-
cated before you can enable encryption success-
fully

Advertising