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

Page 213

Advertising
background image

197

CATC M

ERLIN

S

W

AND

2.00

C

HAPTER

C

User’s Manual

Merlin’s Wand Scripting Commands

Example

result = HCIReadSCOFlowControlEnable();

Trace("HCIReadSCOFlowControlEnable returned: ", result[0],

"\n");

if (result[0] == "Success")

{

Trace("SCO flow control enable is: 0x", result[1],

"\n");

}

HCIReadStoredLinkKey()

HCIReadStoredLinkKey(Address, ReadAll)

Return values

Returns a list with two values: status and data.

Status (element 0) is one of the following:

“Success”

“Failure”

Data (element 1) is a list containing zero or more pairs of the following
two values:

BDADDR: the Bluetooth Address that the link key corresponds to

LinkKey: the link key for the specified address

Comments

Attempts to read the stored link key for the specified address or for all
addresses, depending on the value of ReadAll.

Parameter

Meaning

Default Value

Comments

Address

Bluetooth

address of

device that

will have its

link key read

ReadAll

Boolean value

that indicates

whether to

read only the

specified

address's link

key, or all link

keys

0

0 or 1

Advertising