Web Serial: M115 to a 3D printer
A Tcl script in this page opens a serial port with web::serial::request, sends the G-code M115, and shows each line of the reply up to ok. A printer with Marlin or Klipper gives its firmware name and its capabilities. The script runs in ztcl-host.wasm with the grants dom, event, and web:serial.
The browser shows its port chooser after the click. The script is below, and the page of web:: tells how the bridge works.