- From: Romain Lamothe via GitHub <sysbot+gh@w3.org>
- Date: Fri, 04 Sep 2020 09:11:29 +0000
- To: public-web-bluetooth-log@w3.org
motla has just created a new issue for https://github.com/WebBluetoothCG/web-bluetooth: == [Scanning] advertisementReceived on Bluetooth not specified == Hi, In [Example 1 of the Web Bluetooth Scanning](https://webbluetoothcg.github.io/web-bluetooth/scanning.html#example-ibeacon) specification, you use: ```javascript navigator.bluetooth.addEventListener('advertisementreceived', event => { ... }); ``` However `advertisementreceived` event is only specified for device objects, not the Bluetooth instance. `navigator.bluetooth` has only one event which is `availabilitychanged` event. So how should we implement it? I guess any `advertisementreceived` fired on a device object should then (or before) fire `advertisementreceived` on its Bluetooth instance as well. ##### IMO TODO: - [ ] Add a line that explains when `advertisementreceived` should be fired on the Bluetooth instance (either at https://webbluetoothcg.github.io/web-bluetooth/scanning.html#advertising-events or https://webbluetoothcg.github.io/web-bluetooth/#advertising-events) - [ ] Update Bluetooth definition with the `advertisementreceived` event and description at https://webbluetoothcg.github.io/web-bluetooth/#bluetooth What do you think? This issue was already mentioned in #426 and has only been partially fixed. Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/512 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 4 September 2020 09:11:31 UTC