Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Use WebUSB fallback when serial is not available #205

Closed
sverben opened this issue Apr 1, 2024 · 1 comment · Fixed by #206
Closed

Use WebUSB fallback when serial is not available #205

sverben opened this issue Apr 1, 2024 · 1 comment · Fixed by #206
Assignees
Labels
enhancement New feature or request

Comments

@sverben
Copy link
Member

sverben commented Apr 1, 2024

Whenever webserial is not available we should fallback to webusb to support a wider range of browsers including several Android browsers, see compatibility table

We can do this by using Google's WebSerial polyfill for WebUSB, the API should be (almost) fully compatible with the WebSerial API

Although limited to robot's that have an USB chip, this will allow Android devices to use the Leaphy software. The generic UNO and Nano do not support this functionality, the Nano ESP32 and Nano RP2040 do support this.

@sverben sverben self-assigned this Apr 1, 2024
@rmoesbergen rmoesbergen added the enhancement New feature or request label Apr 1, 2024
@sverben
Copy link
Member Author

sverben commented Apr 1, 2024

early version appears to be working for all arduino's including generic ones, under the condition that there is no serial driver for the device available, which aren't present on Android

@sverben sverben linked a pull request Apr 2, 2024 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants