From 5b987c59c5943ad63774767e345c6683621dfb55 Mon Sep 17 00:00:00 2001 From: Bernhard Trinnes Date: Wed, 14 Nov 2018 10:45:48 +0100 Subject: [PATCH] added port config --- unipi/devicepluginunipi.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/unipi/devicepluginunipi.cpp b/unipi/devicepluginunipi.cpp index cfeb85fe..2a8a8689 100644 --- a/unipi/devicepluginunipi.cpp +++ b/unipi/devicepluginunipi.cpp @@ -367,10 +367,9 @@ void DevicePluginUniPi::setOutput(const QString &circuit, bool value) void DevicePluginUniPi::connectToEvok() { - if (m_webSocket == NULL) { + if ((m_webSocket == NULL) || !m_webSocket) { - int port = 8080; - //configValue(uniPiPortParamTypeId).toInt(); //FIXME plugin configuration loading currently not possible in init + int port = configValue(uniPiPortParamTypeId).toInt(); m_webSocket = new QWebSocket(); connect(m_webSocket, &QWebSocket::connected, this, &DevicePluginUniPi::onWebSocketConnected);