Found in 1 comment on Hacker News
sqrtc · 2023-03-18 · Original thread
I think if you’re planning on using this for personal use, and willing to accept the (slight) inconveniences associated with it, then this is likely very possible. Note that you’ll likely only be allowed to use the Bluetooth API in secure context, so HTTPS rather than file://[0]. I point this out as you’ve said a simple HTML page.

I recently built an application involving BLE (although not in a browser), and was quite surprised by how straightforward it can be. I’d recommend O’Riley’s Getting Started with Bluetooth Low Energy[1] as a quick skim to understand the core BLE concepts.

If you’re unsure how your device’s services and characteristics are set up, then using a decent inspector app is good if you’re trying to reverse engineer the values, I recommend BT Inspector[2] but unfortunately it’s iOS/MacOS only.

[0] https://developer.chrome.com/articles/bluetooth/#https-only

[1] https://www.oreilly.com/library/view/getting-started-with/97...

[2] https://apps.apple.com/gb/app/bluetooth-inspector/id15090850...