Configurable Data Struct for TCP/IP
-
Hello all,
I have made a configurable UI using C++ and Qt QML. Basically I can drag and drop buttons and indicators, etc. I would like to be able to identify variables within the configurable UI post build and deployment (without accessing the C++ source) that can be transmitted and received over TCP/IP to a separate application. Basically, I need a way to dynamically change the TCP/IP structure post build and deployment from my configurable QML UI. Any ideas on what the best way to do this is? Thanks in advance!
-
TCP/IP is stream oriented. It does not worry about the data structure. Since you are asking the post build, best thing is to make JSON or XML format of your data. You can read this as binary data and transmit over the TCP/IP.
-
How do you decide which type (bool, int, etc.) each variable is on the receiver side given that it is different for each configured UI project? There has to be a way of identifying it from the UI and then decoding it on the receiver.
Also, can this XML or JSON file be generated based on what is input in the QML UI?
-
Hi,
Out of curiosity, why not send directly your QML file ?