TurboWarp / scratch-gui

TurboWarp GUI and addons
https://turbowarp.org/
GNU General Public License v3.0
106 stars 166 forks source link

Connect hardware devices without Scratch Link #891

Open DNin01 opened 7 months ago

DNin01 commented 7 months ago

There might be a way for webpages to directly communicate with hardware devices like micro:bit without requiring a companion app like Scratch Link. I don't know how to do it, but I think it would be worth considering because a lot of people including myself seem to have inconsistent issues with getting a connection to devices through the current Scratch Link implementation.

There is a Web Bluetooth API that is supported by Chromium 56+ for Android and macOS and 70+ for Windows. To be used on Linux, you must enable a flag. It's also supported on Samsung Internet 6.0+. Also, the WebRTC API allows you to make peer-to-peer connections if that's useful.

If it's not possible on the website, then maybe it could be implemented in the desktop app.

GarboMuffin commented 7 months ago

I don't have any of the needed hardware, so all I can really say is that patches are accepted