Re: [Bluez-users] replicate hcitool scan using bluez libs

Marcel Holtmann
2005-01-12T12:18:24Z

Hi Weston,

> I am a little new to the bluez libs etc, and am trying to essentiall
> call functions in the bluez libs to simulate "scan" behaviour of
> hcitool.
>
> At first I thought it was inquiry in hci.h but after running the
> tools, seems like they yeild different results. Also, device_id is id
> of the bluetooth radio in the system?

the "scan" combines the hci_inquiry() with hci_read_remote_name() and
thats it. The source is in hcitool.c at cmd_scan(). And dev_id is the
number of your local HCI device (see "hcitool dev").

Regards

Marcel