Users Manual Instruction Manual

147
CATC BTTRAINER 2.11 CHAPTER
Users 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