[Feature Request] Add support for Serial with via WebUSB

Discuss PC Developer and Web Developer projects and features here.
Post Reply
VIDEOMED
Posts: 22
http://meble-kuchenne.info.pl
Joined: Fri Dec 11, 2020 8:21 am

[Feature Request] Add support for Serial with via WebUSB

Post by VIDEOMED »

The Web Serial API used currently has (at least for now) doesn't support android hosts at all (because something something android doesn't have a native serial API), which is somewhat annoying (embedded android is obviously a nice target for this sort of task), and it only supports chrome 87 and up. In contrast, WebUSB is a lot older, is supported on android and isn't THAT much more difficult (there is a polyfill, but it doesn't support common many adapters although they only require fairly minor changes, mostly relating to configuring baud rates).

Would it be possible to add the polyfill to the generated sources? (and ideally, extend the polyfill to support common ftdi/ch341/etc. devices?)

Polyfill link: https://github.com/google/web-serial-polyfill/

Thanks

Steve-Matrix
Matrix Staff
Posts: 1345
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 181 times
Been thanked: 316 times

Re: [Feature Request] Add support for Serial with via WebUSB

Post by Steve-Matrix »

Thanks for the suggestion - will have a look. We hope to add more to Web Developer soon and I plan to look into some more of the APIs like WebUSB and WebHID.

Post Reply