scratchfoundation / scratch-link

Device interoperability layer for Windows and MacOS
BSD 3-Clause "New" or "Revised" License
102 stars 83 forks source link

Playground improvements for SPIKE Prime #167

Open cwillisf opened 4 years ago

cwillisf commented 4 years ago

Proposed Changes

Reason for Changes

The Bluetooth Classic (BT) section of the playground had fallen behind the BLE section, and was basically only useful for the EV3. This brings BT up to the same level as BLE and hopefully will make it easier to maintain them both (and keep them in sync) going forward.

knandersen commented 4 years ago

@cwillisf I tried pulling the PR. I just need to open the playground.html right? no need for a server or anything? If I click Discover peripherals I get an error:

Button btDiscover caught exception: TypeError {stack: "btDiscover@file:///Users/dkkevian/Dev/scratch-link/playground/playground.js:391:15↵file:///Users/dkkevian/Dev/scratch-link/playground/playground.js:11:17"})