diff --git a/NERODevelopment/src/models/mqtt_client.cpp b/NERODevelopment/src/models/mqtt_client.cpp index 50f7235..4934712 100644 --- a/NERODevelopment/src/models/mqtt_client.cpp +++ b/NERODevelopment/src/models/mqtt_client.cpp @@ -82,7 +82,7 @@ void MqttClient::updateMessage(const QMqttMessage &msg) { qDebug() << debug; } -void MqttClient::sendMessage(const QString msg, const QString topic) { +void MqttClient::sendMessage(const QString topic, const QString msg) { serverdata::ServerData serverData; serverData.setUnit(""); serverData.setValues({msg}); diff --git a/NERODevelopment/src/models/mqtt_client.h b/NERODevelopment/src/models/mqtt_client.h index e50f93e..d7d801c 100644 --- a/NERODevelopment/src/models/mqtt_client.h +++ b/NERODevelopment/src/models/mqtt_client.h @@ -40,7 +40,7 @@ public slots: * topic and then the passed following topic path. * @param msg, the message to send */ - void sendMessage(const QString msg, const QString topic); + void sendMessage(const QString topic, const QString msg); signals: /**