-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Rewrite of the web_serial example website. #3091
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
base: master
Are you sure you want to change the base?
Conversation
Persist settings.
Adds support for web serial as well.
0319974
to
da2be8f
Compare
2bf87b8
to
95f1166
Compare
Thank for your PR, it does indeed resolve the ZLP issue in #2632. However I've some issues on Chrome 136 Windows 10:
|
That's an odd one.
Ugh. Fair enough. |
Yeah I'm not tricking you :) Tested on STM32L053 and STM32F723. I just recorded a video demonstration on my home PC with Chrome 137 Windows 10, the symptome is a little different
Chrome.Paq5suxchp-1.mp4chrome_8ppkgJviKD.mp4diff --git a/examples/device/webusb_serial/src/main.c b/examples/device/webusb_serial/src/main.c
index d189af91f..f0796e0e8 100644
--- a/examples/device/webusb_serial/src/main.c
+++ b/examples/device/webusb_serial/src/main.c
@@ -253,6 +253,7 @@ void tud_cdc_line_state_cb(uint8_t itf, bool dtr, bool rts) {
if (dtr && rts) {
// print initial message when connected
tud_cdc_write_str("\r\nTinyUSB WebUSB device example\r\n");
+ tud_cdc_write_flush();
}
} Footnotes
|
Thanks for the video that makes it very easy to reproduce. 🤣 Having the dev tools open would have been even better (for the next time). I will fix these four issues. Might take me a while though. |
Fixes: #2632
This makes the web serial website code available and it adds lots of new features that make serial debugging fun!
If you find any bugs or want some changes just tell me.
I tried to keep it as simple as possible while still providing useful features.