Skip to content

WebSerial support #58

@puddly

Description

@puddly

I propose adding a webserial:// transport via Pyodide. We already have a mostly-API-compatible WebSerial transport in use within sl-web-tools that I've played around with adapting.

Questions:

  • CI: it would be interesting to see if we can run pytest via Pyodide. The Python-JS APIs are very tricky to get right and have lifetime bugs.
  • WebSerial, unlike other transports, requires user interaction to select the serial port. There is no way to select a serial port by name, list ports, or connect to a port outside of user interaction. I think we can work around this by having connections go via webserial://serial as the global port, which needs to be set out-of-band with a helper.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions