mqttclient: Add Qt6 support
parent
f4a6c8bff9
commit
c323e0ffd7
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@ QT += network
|
|||
|
||||
PKGCONFIG += nymea-mqtt
|
||||
|
||||
TARGET = $$qtLibraryTarget(nymea_integrationpluginmqttclient)
|
||||
|
||||
SOURCES += \
|
||||
integrationpluginmqttclient.cpp
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue