Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Convert Web Bluetooth article from WebFu #4090

Merged
merged 2 commits into from Oct 21, 2020

Conversation

beaufortfrancois
Copy link
Member

@beaufortfrancois beaufortfrancois commented Oct 19, 2020

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:

  • Removed all mentions of the Physical Web and Eddystone as both projects have been cancelled
  • Replaced "the chrome team" with "spec authors"
  • Removed lengthy "why https is important" explanation
  • Replaced "var" and "let" with "const" when possible in JS examples
  • Removed "flying grumpy cats" as YouTube video is down nowadays
  • Updated all bluetooth.com links as the viewer has been removed
  • Replaced all 404 URLs with new ones.

Live preview at https://deploy-preview-4090--web-dev-staging.netlify.app/bluetooth/

@beaufortfrancois beaufortfrancois requested a review from a team as a code owner October 19, 2020 18:45
@google-cla google-cla bot added the cla: yes Contributor has signed the CLA label Oct 19, 2020
@github-actions
Copy link

Alex Recommends Report

Alex recommends the following language changes, but Alex is a regular expression based algorithm, so take them with a grain of salt.

✨ 🚀 ✨ Nothing to Report ✨ 🚀 ✨

@netlify
Copy link

netlify bot commented Oct 19, 2020

Deploy preview for web-dev-staging ready!

Built with commit 975ab28

https://deploy-preview-4090--web-dev-staging.netlify.app

Copy link
Contributor

@kaycebasques kaycebasques left a 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. This looks very grainy for me. I see that it's the correct dimensions. Maybe it was smaller than 3200 and resized up? In other words, can you find a higher resolution version?

image

Copy link
Member Author

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">
Copy link
Contributor

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

Copy link
Member Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.)

Copy link
Member Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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/

Copy link
Member Author

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Member Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
A "Bluetooth Internals" page is available in Chrome at
A **Bluetooth Internals** page is available in Chrome at

https://developers.google.com/style/ui-elements#formatting

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment on lines 472 to 473
I would also recommend you check out the official ["How to file Web Bluetooth
bugs"] page as debugging Bluetooth can be hard sometimes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Copy link
Member Author

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
Copy link
Contributor

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?

Copy link
Member Author

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' %}
Copy link
Contributor

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?

Copy link
Member Author

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@beaufortfrancois
Copy link
Member Author

@beaufortfrancois I'm sure you're aware, but the batch commit suggestion workflow should help you address my requested changes faster.

FYI I still manually need to adjust the formatting as I'm trying to keep a consistent maximum number of characters per line.

Copy link
Contributor

@kaycebasques kaycebasques left a 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

@kaycebasques kaycebasques merged commit 9b5b136 into GoogleChrome:master Oct 21, 2020
@beaufortfrancois beaufortfrancois added the content update for issues that do not require new content (only for updates to existing content) label Feb 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Contributor has signed the CLA content update for issues that do not require new content (only for updates to existing content)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants