Scratch link don't send correct data for event 'characteristicDidChange' on MacOS
bkbalaind opened this issue · 0 comments
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