Convert Web Bluetooth article from WebFu #4090
Conversation
Alex Recommends ReportAlex recommends the following language changes, but Alex is a regular expression based algorithm, so take them with a grain of salt. ✨ 🚀 ✨ Nothing to Report ✨ 🚀 ✨ |
Deploy preview for web-dev-staging ready! Built with commit 975ab28 |
aa1038e
to
51e3f46
Compare
51e3f46
to
b11f02d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jpmedley may still want to review this, but I figured I could do a review so that Francois can update this and the USB pages while we're asleep.
@beaufortfrancois I'm sure you're aware, but the batch commit suggestion workflow should help you address my requested changes faster.
Joe, I know this is your swimlane, but Francois was waiting on me to review the Devices collection for a long time and I wanted to make it up to him, so I figured I'd do a review of this to attempt to land this Bluetooth page and the USB page faster. Also, all of my comments are fairly routine so I don't think there will be a "too many cooks in the kitchen" situation.
- beaufortfrancois | ||
date: 2015-07-21 | ||
updated: 2020-10-19 | ||
hero: hero.jpg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've found the original image, updated it, and added proper attribution.
Thanks for catching!
Bluetooth devices: status, services, characteristics, and descriptors. | ||
|
||
<figure class="w-figure"> | ||
<img src="./bluetooth-internals.png" class="w-screenshot" alt="Screenshot of the internal page to debug Bluetooth in Chrome"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please resize this to 1600 pixels width
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Squooshed!
@@ -0,0 +1,549 @@ | |||
--- | |||
title: Communicating with Bluetooth devices |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title: Communicating with Bluetooth devices | |
title: Communicating with Bluetooth devices over JavaScript |
Title keywords seem to have a big impact on documentation SEO. In my own experience, if I'm searching for how to do this, I think I would append js
or javascript
to my search query. You're welcome to rephrase this however you see fit, but I think we should try to get a keyword or two in here to make it clear that the guidance is for web developers. Especially since a lot of different developers have a need to communicate with Bluetooth devices (firmware developers, etc.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
tags: | ||
- blog # blog is a required tag for the article to show up in the blog. | ||
- capabilities | ||
- devices |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- devices | |
- devices | |
- iot |
We have an IoT tag [1] listed in our tags metadata file. Do we want to support that or should we get rid of it? It doesn't look like we've used it yet [2]
[1] https://github.com/GoogleChrome/web.dev/blob/master/src/site/_data/tagsData.json#L117
[2] https://web.dev/tags/iot/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would get rid of it.
|
||
What if I told you websites could communicate with nearby Bluetooth devices | ||
in a secure and privacy-preserving way? This way, heart rate monitors, singing | ||
lightbulbs, [turtles] could interact directly with a website. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lightbulbs, [turtles] could interact directly with a website. | |
lightbulbs, and even [turtles] could interact directly with a website. |
We definitely need and
in here. I added even
because it seemed to match your tone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
||
## Dev Tips | ||
|
||
A "Bluetooth Internals" page is available in Chrome at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A "Bluetooth Internals" page is available in Chrome at | |
A **Bluetooth Internals** page is available in Chrome at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
I would also recommend you check out the official ["How to file Web Bluetooth | ||
bugs"] page as debugging Bluetooth can be hard sometimes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also recommend you check out the official ["How to file Web Bluetooth | |
bugs"] page as debugging Bluetooth can be hard sometimes. | |
I also recommend checking out the official [How to file Web Bluetooth | |
bugs] page as debugging Bluetooth can be hard sometimes. |
Quotes around the link are not needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
I would also recommend you check out the official ["How to file Web Bluetooth | ||
bugs"] page as debugging Bluetooth can be hard sometimes. | ||
|
||
## What's next |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this status still up-to-date?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weirdly enough it is actually ;)
event will fire when any characteristic and/or descriptor gets added or | ||
removed from a Bluetooth GATT Service. | ||
|
||
{% YouTube '_BUwOBdLjzQ' %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linking to a video from 2015 in a section called Whats next?
sends a strange message. I'm OK with embedding the video, but perhaps you want to move it to a different section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've moved it between resources and new acknowledgments section
|
||
- Stack Overflow: [https://stackoverflow.com/questions/tagged/web-bluetooth](https://stackoverflow.com/questions/tagged/web-bluetooth) | ||
- Chrome Feature Status: [https://www.chromestatus.com/feature/5264933985976320](https://www.chromestatus.com/feature/5264933985976320) | ||
- Implementation Bugs: [https://crbug.com/?q=component:Blink>Bluetooth](https://crbug.com/?q=component:Blink>Bluetooth) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Implementation Bugs: [https://crbug.com/?q=component:Blink>Bluetooth](https://crbug.com/?q=component:Blink>Bluetooth) | |
- Chrome Implementation Bugs: [https://crbug.com/?q=component:Blink>Bluetooth](https://crbug.com/?q=component:Blink>Bluetooth) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
FYI I still manually need to adjust the formatting as I'm trying to keep a consistent maximum number of characters per line. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we're good here, thanks for migrating @beaufortfrancois
This PR is about moving https://developers.google.com/web/updates/2015#interact_with_bluetooth_devices_on_the_web to web.dev/bluetooth
Changes to the original article include:
Live preview at https://deploy-preview-4090--web-dev-staging.netlify.app/bluetooth/