aboutsummaryrefslogtreecommitdiffstats
path: root/app/hvac-demo.qml
diff options
context:
space:
mode:
Diffstat (limited to 'app/hvac-demo.qml')
-rw-r--r--app/hvac-demo.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/hvac-demo.qml b/app/hvac-demo.qml
index 565b108..9474f53 100644
--- a/app/hvac-demo.qml
+++ b/app/hvac-demo.qml
@@ -18,10 +18,19 @@ import QtQuick 2.6
import QtQuick.Layouts 1.1
import QtQuick.Controls 2.0
import AGL.Demo.Controls 1.0
+import QtWebSockets 1.0
ApplicationWindow {
id: root
+ // GET BINDINGS VARIABLES
+ property string port_str: Qt.application.arguments[1]
+ property string token_str: Qt.application.arguments[2]
+ property string address_str: "ws://localhost:"+port_str+"/api?token="+token_str
+ property string request_str: ""
+ property string status_str: "waiting..."
+ property var msgid_enu: { "call":2, "retok":3, "reterr":4, "event":5 }
+
ColumnLayout {
anchors.fill: parent
anchors.topMargin: width / 10