remote_name_request, using libbluetooth

Masoom Shaikh masoom.shaikh at gmail.com
Sun Oct 4 14:39:43 UTC 2009


On Sun, Oct 4, 2009 at 7:57 AM, Iain Hibbert <plunky at rya-online.net> 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


More information about the freebsd-bluetooth mailing list