scratchfoundation / scratch-link

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

Scratch link don't send correct data for event 'characteristicDidChange' on MacOS #160

Closed bkbalaind closed 2 years ago

bkbalaind commented 4 years ago

Expected Behavior

By documentation is should getting

{ "jsonrpc": "2.0", // JSON-RPC version indicator "method": "characteristicDidChange", // Command identifier "params": { "serviceId": "0000180f-0000-1000-8000-00805f9b34fb" // UUID of the service which hosts the changed characteristic "characteristicId": "00002a19-0000-1000-8000-00805f9b34fb", // UUID of the characteristic whose value changed "message": "cG9uZw==", // The data read from the characteristic "encoding": "base64" // Optional: Encoding used by the "message" property } }

Actual Behavior

I'm getting

{ "jsonrpc": "2.0", // JSON-RPC version indicator "method": "characteristicDidChange", // Command identifier "params": { "message": "cG9uZw==", // The data read from the characteristic "encoding": "base64" // Optional: Encoding used by the "message" property } }

Steps to Reproduce

execute it on MacOS and you will see it

Operating System and Browser

Mac OS 10.14.6 Safari 13.0.3