Metrologic Optimus S Programming Manual page 181

"c" programming guide
Table of Contents

Advertisement

Pairing
With the information on nearby Bluetooth devices, the application can then try to pair with
any of the remote devices by calling BTPairingTest().
BTPairingTest
Purpose
To pair with one Bluetooth device.
Syntax
int BTPairingTest (BTSearchInfo *Info, int TargetMachine);
Example
BTSearchInfo Info[4];
int Rst;
.........
Rst = BTInquiryDevice (&Info, 4);
if (Rst) {
}
Description
This routine tries to pair with one Bluetooth device with matching type of
service (AP, SPP, or DUN) specified by TargetMachine.
Once pairing successfully, the MAC ID, PIN Code, and Link Key of this
remote device will be updated to the Frequent Device List.
The value of the parameter TargetMachine can be one of the following:
1
3
4
Return
If successful, it returns 1.
On error, it returns 0.
BTInquiryDevice
See Also
Chapter 3 Terminal Specific Function Library
printf ("Find %d devices in range", Result);
Rst = BTPairingTest (Info[0], BTSerialPort);
if (Rst) printf ("Pair OK");
else printf ("Pair Fail");
............
BTNetworkAccessPoint
BTSerialPort
BTDialUpNetworking
175

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents