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