mqttclient: Add Qt6 support
This commit is contained in:
parent
f4a6c8bff9
commit
c323e0ffd7
@ -1,6 +1,6 @@
|
|||||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
*
|
*
|
||||||
* Copyright 2013 - 2020, nymea GmbH
|
* Copyright 2013 - 2025, nymea GmbH
|
||||||
* Contact: contact@nymea.io
|
* Contact: contact@nymea.io
|
||||||
*
|
*
|
||||||
* This file is part of nymea.
|
* This file is part of nymea.
|
||||||
@ -29,9 +29,10 @@
|
|||||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "integrationpluginmqttclient.h"
|
#include "integrationpluginmqttclient.h"
|
||||||
#include "integrations/thing.h"
|
|
||||||
#include "plugininfo.h"
|
#include "plugininfo.h"
|
||||||
#include "network/mqtt/mqttprovider.h"
|
|
||||||
|
#include <integrations/thing.h>
|
||||||
|
#include <network/mqtt/mqttprovider.h>
|
||||||
|
|
||||||
#include <mqttclient.h>
|
#include <mqttclient.h>
|
||||||
|
|
||||||
@ -173,7 +174,8 @@ void IntegrationPluginMqttClient::publishReceived(const QString &topic, const QB
|
|||||||
topicParamTypeId = mqttClientTriggeredEventTopicParamTypeId;
|
topicParamTypeId = mqttClientTriggeredEventTopicParamTypeId;
|
||||||
payloadParamTypeId = mqttClientTriggeredEventDataParamTypeId;
|
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)
|
void IntegrationPluginMqttClient::thingRemoved(Thing *thing)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
*
|
*
|
||||||
* Copyright 2013 - 2020, nymea GmbH
|
* Copyright 2013 - 2025, nymea GmbH
|
||||||
* Contact: contact@nymea.io
|
* Contact: contact@nymea.io
|
||||||
*
|
*
|
||||||
* This file is part of nymea.
|
* This file is part of nymea.
|
||||||
@ -31,7 +31,7 @@
|
|||||||
#ifndef INTEGRATIONPLUGINMQTTCLIENT_H
|
#ifndef INTEGRATIONPLUGINMQTTCLIENT_H
|
||||||
#define INTEGRATIONPLUGINMQTTCLIENT_H
|
#define INTEGRATIONPLUGINMQTTCLIENT_H
|
||||||
|
|
||||||
#include "integrations/integrationplugin.h"
|
#include <integrations/integrationplugin.h>
|
||||||
|
|
||||||
#include <QHash>
|
#include <QHash>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|||||||
@ -4,8 +4,6 @@ QT += network
|
|||||||
|
|
||||||
PKGCONFIG += nymea-mqtt
|
PKGCONFIG += nymea-mqtt
|
||||||
|
|
||||||
TARGET = $$qtLibraryTarget(nymea_integrationpluginmqttclient)
|
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
integrationpluginmqttclient.cpp
|
integrationpluginmqttclient.cpp
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user