scratchfoundation / scratch-link

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

BLE JSONRPC: "characteristicDidChange" params doesn't contain "serviceId" adn #206

Open nerlihmax opened 2 years ago

nerlihmax commented 2 years ago

Scratch Link on macOS doesnt send fields "serviceId" and "characteristicId" in { method: "characteristicDidChange" } notifications.

Снимок экрана 2022-05-26 в 16 12 02

Steps to Reproduce

Explain what someone needs to do in order to see what's described in Actual behavior above

Steps to reproduce the behavior:

  1. Go to 'https://scratch.mit.edu/projects/editor/'.
  2. Click on 'add extension'.
  3. Scroll down to 'WeDo 2.0' and add it (or another device used BLE).
  4. Open browser's devtool, pick tab "Network" and open websocket connection tab, open tab "messages".
  5. Connect to peripheral.
  6. Check out websocket traffic.

System Details

macOS 12.3 Macbook Air 13 2020 (arm64) Scratch Link 1.4.3