From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [Bluez-users] replicate hcitool scan using bluez libs From: Marcel Holtmann To: BlueZ Mailing List In-Reply-To: References: Content-Type: text/plain Message-Id: <1105532304.7961.58.camel@pegasus> Mime-Version: 1.0 Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed, 12 Jan 2005 13:18:24 +0100 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 ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users