aboutsummaryrefslogtreecommitdiff
path: root/client/HandleMessage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/HandleMessage.cpp')
-rw-r--r--client/HandleMessage.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/HandleMessage.cpp b/client/HandleMessage.cpp
index aa73828..3d8823b 100644
--- a/client/HandleMessage.cpp
+++ b/client/HandleMessage.cpp
@@ -1,6 +1,5 @@
#include "HandleMessage.h"
-
HandleMessage::HandleMessage(QObject *parent) : QObject(parent)
{
@@ -17,7 +16,7 @@ QString HandleMessage::ParseMessage(const QString Msg , int totalRecords )
void HandleMessage::ParseToSQL(QString input)
{
QSqlQuery queryInsertData;
- QString output = "INSERT INTO `WSdb`.`tblMain` () VALUES ";
+ QString output = "INSERT INTO `tblMain` (`temperature`, `humidity`, `pressure`) VALUES ";
QStringList data;
QStringList list = input.split("\n");
for (int i = 0; i < list.size(); ++i) {