Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Question] To control USB devices directly from a browser #724

Copy link
Copy link
@diuming

Description

@diuming
Issue body actions

Hi,
I've successfully communicated and controlled my USB device within a browser using Emscripten + libusb (compiled into a static library by Emscripten).
Most of code (communication and control) is written in C, and Emscripten compiles it into JavaScript and wasm.

I am specifically concerned about the WebUSB bridging, as Emscripten provides a built-in layer for libusb, which SwiftWasm might lack.

Is it possible to convert this communication and control C code to Swift using Swift SDKs for WebAssembly?

Browser communicate with USB Device?
`My Swift code` + `Swift SDKs for WebAssembly` + `Emscripten libusb static library`
Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

questionFurther information is requestedFurther information is requested

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.