diff --git a/tcpcommander/integrationplugintcpcommander.cpp b/tcpcommander/integrationplugintcpcommander.cpp index bce407b7..7ddc4979 100644 --- a/tcpcommander/integrationplugintcpcommander.cpp +++ b/tcpcommander/integrationplugintcpcommander.cpp @@ -91,7 +91,9 @@ void IntegrationPluginTcpCommander::setupThing(ThingSetupInfo *info) m_tcpServers.insert(thing, tcpServer); connect(tcpServer, &TcpServer::connectionCountChanged, this, &IntegrationPluginTcpCommander::onTcpServerConnectionCountChanged); connect(tcpServer, &TcpServer::commandReceived, this, &IntegrationPluginTcpCommander::onTcpServerCommandReceived); - return info->finish(Thing::ThingErrorNoError); + info->finish(Thing::ThingErrorNoError); + thing->setStateValue("connected", true); + return; } else { tcpServer->deleteLater(); qDebug(dcTCPCommander()) << "Could not open TCP Server";