Commit Graph

4 Commits

Author SHA1 Message Date
Asad Memon
4cb8e20663 pw_web: Add disconnect() method to WebSerialTransport
Also fix build and test errors and release a new NPM patch.

Change-Id: Ie54881b04518394e59bc5a70b1d1afa56ffe635d
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/156471
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
Commit-Queue: Asad Memon <asadmemon@google.com>
2023-07-19 00:11:55 +00:00
Asad Memon
37203006f6 pw_web_ui: Rename pw_web_ui to pw_web and replace all references
Change-Id: I15c6f31b7b022ffd9d9f765acd1ff04eae7b17f7
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/104701
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
Pigweed-Auto-Submit: Asad Memon <asadmemon@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
2022-08-04 23:07:53 +00:00
Asad Memon
41af1d8561 pw_web_ui: Replace '@pigweed' and 'pigweed' imports with 'pigweedjs'
Changing package name from pigweed to pigweedjs caused a few protos
to not be included in final bundle. This fixes the bug and adds
a test to check if the bundle imports some outside module, which
happens when rollup fails to find the right module when creating
the bundle.

Change-Id: I0987ca74e91b1b355779bf382ea8b567e62eda18
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/103400
Commit-Queue: Asad Memon <asadmemon@google.com>
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
2022-07-25 21:46:54 +00:00
Asad Memon
33fe97272b pw_web_ui: Export WebSerial.WebSerialTransport helper class
This exports a helper class to connect to serial port and subscribe
to uint8 chunks easily without having to re-implement that logic.

Change-Id: Ie6563d0cfc71acf2d3eb79d5b10309da38b746ff
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/103002
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
Commit-Queue: Asad Memon <asadmemon@google.com>
2022-07-22 21:06:09 +00:00