Re: [web-bluetooth] Proposal: active scanning with scan response (#623)

It seems that the teams implementing BLE scanning and advertising would need to unify how scan responses work across all platforms. However, with no clear instructions on how it should work, it could lead to different implementations on different browsers, resulting in an API that cannot be used in the real world, or at least is very difficult to use.

For example, on Android, scan response is integrated with advertising data (see: [context](https://github.com/AltBeacon/android-beacon-library/issues/30)), but from my experience on iOS, the data is split into two subsequent messages. I have found that it works similarly on Windows.

My proposal is to add a field in the scan event for the scanResponseData (similar to serviceData). This way, it would be clear to teams implementing the specification that they should include this data (or null if not present) inside the event, and therefore they must glue together incoming SCN_RSP data packets with ADV packets

-- 
GitHub Notification of comment by mikolajefento
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/623#issuecomment-2049515294 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 11 April 2024 11:44:37 UTC