mqttclient: Add Qt6 support

master
Simon Stürz 2025-08-08 14:49:01 +02:00
parent f4a6c8bff9
commit c323e0ffd7
3 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Copyright 2013 - 2020, nymea GmbH
* Copyright 2013 - 2025, nymea GmbH
* Contact: contact@nymea.io
*
* This file is part of nymea.
@ -29,9 +29,10 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include "integrationpluginmqttclient.h"
#include "integrations/thing.h"
#include "plugininfo.h"
#include "network/mqtt/mqttprovider.h"
#include <integrations/thing.h>
#include <network/mqtt/mqttprovider.h>
#include <mqttclient.h>
@ -173,7 +174,8 @@ void IntegrationPluginMqttClient::publishReceived(const QString &topic, const QB
topicParamTypeId = mqttClientTriggeredEventTopicParamTypeId;
payloadParamTypeId = mqttClientTriggeredEventDataParamTypeId;
}
emitEvent(Event(eventTypeId, thing->id(), ParamList() << Param(topicParamTypeId, topic) << Param(payloadParamTypeId, payload)));
emit emitEvent(Event(eventTypeId, thing->id(), ParamList() << Param(topicParamTypeId, topic) << Param(payloadParamTypeId, payload)));
}
void IntegrationPluginMqttClient::thingRemoved(Thing *thing)

View File

@ -1,6 +1,6 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Copyright 2013 - 2020, nymea GmbH
* Copyright 2013 - 2025, nymea GmbH
* Contact: contact@nymea.io
*
* This file is part of nymea.
@ -31,7 +31,7 @@
#ifndef INTEGRATIONPLUGINMQTTCLIENT_H
#define INTEGRATIONPLUGINMQTTCLIENT_H
#include "integrations/integrationplugin.h"
#include <integrations/integrationplugin.h>
#include <QHash>
#include <QDebug>

View File

@ -4,8 +4,6 @@ QT += network
PKGCONFIG += nymea-mqtt
TARGET = $$qtLibraryTarget(nymea_integrationpluginmqttclient)
SOURCES += \
integrationpluginmqttclient.cpp