-
-
Notifications
You must be signed in to change notification settings - Fork 622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grouping variables using "/" fails with websockets and JSON #384
Comments
To remove one possibility regarding the issue, I made a new function in websocket_server.cpp connected to the WebSocket::binaryMessageReceived signals, and sent directly binary messages (QByteArray) from my c++ Client. So I guess the problem comes from the |
I checked the cast. It is okay. Printing data at every step got me to this line: The conversion from |
well, what I can do is to reimplement that particular function. I don't expect it to be a big deal |
Maybe using the integrated JSON functions of Qt? |
fixed! |
Wow, that was fast ! |
Hi @facontidavide,
I am switching to your new plugin for Websockets communication with JSON.
Works great, except the key names via JSON seem to do not like the "/".
"/" is converted to "~1", so I can't group the variables.
To easily reproduce this, I have slightly modified websocket_client.py by adding a variable named:
var/x
Here is the result:
Is this a bug, or is this a constraint coming from a string encoding?
Grouping variables via JSON object encapsulation works.
Reading a CSV with a slash in the names works too.
I am using the lastest tag 3.0.7
Thanks for version 3, it is amazing!
Jimmy
The text was updated successfully, but these errors were encountered: