mirror of
https://github.com/nymea/nymea-plugins.git
synced 2026-10-21 14:23:24 +02:00
added port config
This commit is contained in:
parent
1aa1e42528
commit
c38e15c540
@ -367,10 +367,9 @@ void DevicePluginUniPi::setOutput(const QString &circuit, bool value)
|
|||||||
|
|
||||||
void DevicePluginUniPi::connectToEvok()
|
void DevicePluginUniPi::connectToEvok()
|
||||||
{
|
{
|
||||||
if (m_webSocket == NULL) {
|
if ((m_webSocket == NULL) || !m_webSocket) {
|
||||||
|
|
||||||
int port = 8080;
|
int port = configValue(uniPiPortParamTypeId).toInt();
|
||||||
//configValue(uniPiPortParamTypeId).toInt(); //FIXME plugin configuration loading currently not possible in init
|
|
||||||
|
|
||||||
m_webSocket = new QWebSocket();
|
m_webSocket = new QWebSocket();
|
||||||
connect(m_webSocket, &QWebSocket::connected, this, &DevicePluginUniPi::onWebSocketConnected);
|
connect(m_webSocket, &QWebSocket::connected, this, &DevicePluginUniPi::onWebSocketConnected);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user