Skip to content

Commit

Permalink
#82 Flip topic and message
Browse files Browse the repository at this point in the history
  • Loading branch information
Peyton-McKee committed Feb 27, 2024
1 parent 0c45523 commit 5dd3fa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NERODevelopment/src/models/mqtt_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down
2 changes: 1 addition & 1 deletion NERODevelopment/src/models/mqtt_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
/**
Expand Down

0 comments on commit 5dd3fa9

Please sign in to comment.