Page 1 of 1

[Feature Request] Add support for Serial with via WebUSB

Posted: Thu Jun 13, 2024 1:37 pm
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

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

Posted: Thu Jun 13, 2024 4:17 pm
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.