Re: Web Bluetooth Scanning Spec

22 views
Skip to first unread message

Jeffrey Yasskin

unread,
Jul 21, 2019, 9:57:59 PM7/21/19
to Chaudhary, Ayush, web-bl...@chromium.org
The event object has a .target attribute which will be the object it
was fired at.

On Sun, Jul 21, 2019 at 1:47 PM Chaudhary, Ayush <ay...@amazon.com> wrote:
>
> Hi Jeffrey,
>
>
>
> I was going through the scanning spec published here: https://webbluetoothcg.github.io/web-bluetooth/scanning.html#issue-limit-scan-periods. I'm trying to understand what is the recommended approach for connecting to a "scanned" device. The example illustrates subscribing to onadvertisementreceived event on navigator.bluetooth object, however, the handling event section mentions "Fire an advertisementreceived event for event at deviceObj." Is there a way to get device from the advertisement data?
>
>
>
> Thanks,
>
> Ayush

Chaudhary, Ayush

unread,
Jul 22, 2019, 2:02:05 PM7/22/19
to Jeffrey Yasskin, web-bl...@chromium.org
Thanks Jeffrey for the quick response!
Reply all
Reply to author
Forward
0 new messages