
Chapter 18. Bluetooth
449
18.2.3 Programming Procedures
18.2.3.1 Discovering Accessible Remote Devices in the
Vicinity (Inquiry)
The BHT supports the Generic Access Profile for discovering accessible Bluetooth devices in
the vicinity.
Connecting to a remote device as master requires specifying the Bluetooth device address for
that device. If that address is unknown, the BHT must first determine the addresses of
accessible Bluetooth devices in the vicinity. If that address is already known, however, the
user program can skip this step.
The following is the procedure for discovering remote devices.
Remote device discovery has the following parameters.
• Device discovery timeout, in seconds
• Number of devices to discover
Remote device discovery continues until the specified time elapses, the BHT finds the
specified number of remote devices, or the user presses the clear key.
Open Bluetooth communications device file
OPEN "COM4:I" statement
Discover accessible Bluetooth devices in
the vicinity
Read Bluetooth device addresses for those
devices
Extended function BT.FN3 function
number .fcBTInqRes
CLOSE statement Close Bluetooth device file
Comentários a estes Manuais