-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements and additions to Web Serial API docs #37015
Conversation
Preview URLs (8 pages)External URLs (3)URL:
URL:
(comment last updated: 2024-12-02 10:18:30) |
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.
👍 thanks!
Cool, cheers @wbamberg! Any other comments, @beaufortfrancois? |
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.
LGTM with nit
Co-authored-by: François Beaufort <[email protected]>
Description
MDN documented the Web Serial API a few years ago now (it was first supported in Chrome 89), but the MDN docs have not been updated much since then, for example to include support for Bluetooth RFCOMM services (originally only wired ports such as actual serial ports and USB devices were supported), which was added in Chrome 117 — see https://chromestatus.com/feature/5686596809523200.
This PR adds docs for Bluetooth RFCOMM support and other improvements besides, Specially:
bluetoothServiceClassId
properties inside theSerial.requestPort()
filters
option.Serial.requestPort()
allowedBluetoothServiceClassIds
option.bluetoothServiceClassId
property inside the object returned by theSerialPort.getInfo()
method.SerialPort.close()
, andSerialPort.forget()
pages, to clarify the distinction between them and add more info generally.Motivation
Additional details
Related issues and pull requests