bricklife / Scrub

Web browser app for Scratch 3.0 and Bluetooth devices
BSD 3-Clause "New" or "Revised" License
23 stars 3 forks source link

[feature request] support for EV3 #24

Open utotch opened 1 year ago

utotch commented 1 year ago

I expected to use Scrub to control EV3 on iPad since we can't use Scratch Link on it.

Scrub said "this extension is not supported" when I tried to connect EV3.

I hope Scrub supports EV3 if the implementation needs too much effort.

Are there any huge differences to support EV3 or just implementing the specific protocol is tiring?

Anyway, this app is useful on iPad and I'm surprised to find this solution to connect lego products on iPad.

bricklife commented 1 year ago

@utotch Technically, Scrub and EV3 can communicate. I have implemented the feature in the following file: https://github.com/bricklife/Scrub/blob/main/ScratchLink/Sources/ScratchLink/BTSession.swift

However, I cannot publish an app with this implementation in the App Store, because EV3 communicates with apps as an MFi device, so only the company that produces the MFi device (in this case, LEGO) can publish the app.