简体   繁体   中英

Web bluetooth application scanning for manufacturer data

I want to create a Web bluetooth application that scan for advertising data (manufacturer data). I used the example provided by chrome for scaning advertisement . However it only gives me the UUIDs of my device and not the manufacturer data.

Do you know if its possible to scan specific device and get their manufacturer data?

https://googlechrome.github.io/samples/web-bluetooth/scan.html?namePrefix=Ruuvi should indeed work and log manufacturer data if broadcasted by the "Ruuvi" BLE device.

Can you see manufacturer data when scanning nearby Bluetooth devices from the internal page chrome://bluetooth-internals/#devices ? You will need Chrome 92 to see this column (Chrome Beta at the time of writing) . See https://chromiumdash.appspot.com/commit/613b3bf2a0de8ac5cddbe73e01b03db20f25d110

If you don't see them, can you try scanning nearby Bluetooth devices with https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp from an Android device? If you still don't see some manufacturer data, it means this device does not broadcast some. If you do, you may be facing a Chrome issue. I'd suggest you file a bug then at https://sites.google.com/a/chromium.org/dev/developers/how-tos/file-web-bluetooth-bugs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM