beautypg.com

Hciauthenticationrequested, Hcicatcchangeheadsetgain – Teledyne LeCroy BTTracer_Trainer - BTTrainer Users Manual User Manual

Page 165

background image

147

CATC BTT

RAINER

2.11

C

HAPTER

User’s Manual

Example

result = HCIAddSCOConnection(Devices[0], ["DM1", "HV1"]);

if(result != "Success")

{

MessageBox(result, "Failed to add SCO connection!");

}

HCIAuthenticationRequested

HCIAuthenticationRequested(Address)

Return value

“Success”

“Failure”

“Failed: Device not found”

“Timed Out”

“Not connected”

Comments

Attempts to authenticate an existing link with the specified device.

Example

result = HCIAuthenticationRequested (Devices[0]);

if(result != "Success")

{

MessageBox(result, "Failed to authenticate!");

}

HCICatcChangeHeadsetGain

HCICatcChangeHeadsetGain(Device, Gain)

Parameter

Meaning

Default Value

Comments

Address

Bluetooth

address of

device to

authenticate

with

A connection must exist with this device for an
authentication request to work.

Parameter

Meaning

Default Value

Comments

Device

Speaker or

microphone

Values: “Speaker”, “Microphone”

Gain

New gain of

the device

Values: 0 – 0xF