On Sun, Oct 4, 2009 at 7:57 AM, Iain Hibbert <[email protected]> wrote:

> On Sun, 4 Oct 2009, Masoom Shaikh wrote:
>
> > > On Sat, 3 Oct 2009, Masoom Shaikh wrote:
> > >
> > > >         int status = bt_devreq( s, &request, 0);
> >
> > yes, i did forgot to say where it failed, devices are inquired properly
> no
> > issues there
> > but bt_devreq() fails with status == -1
>
> ah, I see.. you should put a non-zero timeout value there (waiting for 0
> seconds will not leave enough time for the response :)
>
> if you use eg
>
>        if (status == -1)
>                err(1, "bt_devreq (RemoteNameRequest)")
>
> then you would see an "Operation timed out" message.. I should think 5
> seconds would be reasonable..
>
> regards,
> iain
>
>
> u got the bug by neck, and i would have slit its neck by the time this mail
is in your inbox ;-)
that was the exact error, timeout value of 5 didn't work for me, thus am
using 60, and it works
thanks Iain
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth
To unsubscribe, send any mail to "[email protected]"

Reply via email to