INQUIRY
Name
INQUIRY -- Search for other devices
Synopsis
INQUIRY {timeout} [NAME] [LAP {lap}]
Description
INQUIRY is used to search for other
Bluetooth devices. Timeout is in units of 1.25 seconds. If
an optional NAME parameter is provided,
the NAME command will
be sent automatically to all found devices.
LAP specifies used IAC LAP, the default
is 9e8b33 (GIAC).
During the inquiry, all devices are listed as soon as
they are found with
INQUIRY_PARTIAL replies. If
the friendly name of the device found has been cached by the
iWRAP server, it is also displayed. When the inquiry times
out, a summary is displayed (how many devices were found and
their information repeated).
| Warning |
Do not use NAME parameter in your
program. It is for manual testing only. Use separate
NAME
commands instead. |
Reply
INQUIRY_PARTIAL bdaddr_of_dev_1 class_of_dev_1 "friendly name" rssi
INQUIRY_PARTIAL bdaddr_of_dev_2 class_of_dev_2 "friendly name" rssi
...
INQUIRY_PARTIAL bdaddr_of_dev_n class_of_dev_n "friendly name" rssi
INQUIRY number_of_devices_found
INQUIRY bdaddr_of_dev_1 class_of_dev_1 "friendly name"
INQUIRY bdaddr_of_dev_2 class_of_dev_2 "friendly name"
...
INQUIRY bdaddr_of_dev_n class_of_dev_n "friendly name"
|
Example
READY.
INQUIRY 4
INQUIRY 0
INQUIRY 4
INQUIRY_PARTIAL 00:07:80:80:bf:01 120300 "willow" 255
INQUIRY_PARTIAL 00:07:80:80:bf:02 520204 "" 255
INQUIRY 2
INQUIRY 00:07:80:80:bf:01 120300 "willow"
INQUIRY 00:07:80:80:bf:02 520204 ""
|