Metrologic Optimus S Programming Manual page 180

"c" programming guide
Table of Contents

Advertisement

174
"C" Programming Guide For Optimus S/R
Set Freq. Dev. List
Inquiry
Inquiry is used to discover other Bluetooth devices within range.
BTInquiryDevice
To enable quick connection to a specific device without going through the inquiry
and pairing procedure, a user-definable Frequent Device List can be set up by
calling SetNetParameter(). If there is an existing Frequent Device List generated
from the inquiry and pairing procedure, it then may be partially or overall updated
by this, and vice versa.
There are five fields: Service Type, MAC ID, Device Name, PIN Code, and Link
Key. If authentication is disabled, you only need to specify the first three fields.
Otherwise, the PIN code field needs to be specified for generating Link Key.
Purpose
To discover other Bluetooth devices in range.
Syntax
int BTInquiryDevice (BTSearchInfo *Info, int max);
BTSearchInfo Info[4];
Example
int Rst;
.........
Rst = BTInquiryDevice (&Info, 4);
if (Rst) {
printf ("Find %d devices in range", Rst);
............
}
Description
This routine gets information on Bluetooth devices nearby. It will take about 20
seconds to find devices. The integer max defines the maximum number of
Bluetooth devices that can be inquired.
Return
It returns information on the devices discovered.
Refer to the BTSearchInfo structure.
BTPairingTest
See Also

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents