diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-30 19:53:55 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-30 19:53:55 +0100 |
commit | c0eeae6901572be2469ab61620c39cd2d3b2cb58 (patch) | |
tree | 70a6703eafdec13500691ce6121fb941496aba0a | |
parent | 64453a2c5d073b3cfb88cf43493d396881d7e058 (diff) |
fix compilation errors after merge
-rw-r--r-- | client/HandleMessage.cpp | 34 | ||||
-rw-r--r-- | client/dbconnector.h | 4 |
2 files changed, 19 insertions, 19 deletions
diff --git a/client/HandleMessage.cpp b/client/HandleMessage.cpp index 399abe8..02d7257 100644 --- a/client/HandleMessage.cpp +++ b/client/HandleMessage.cpp @@ -2,24 +2,24 @@ HandleMessage::HandleMessage(QObject *parent) : QObject(parent) { } -void HandleMessage::ParseToSQL(QString input) { - QSqlQuery queryInsertData; - QString output = "insert into WSdb.tblMain (temperature, humidity, pressure) values "; - QStringList data; - - output.append("("); - data=input.split(","); - - for (int i = 1; i < data.size(); i++) { - bool valid; - output.append(QString::number(data[i].toInt(&valid, 16))); - if (i + 1 < data.size()) output.append(","); - } +// void HandleMessage::ParseToSQL(QString input) { +// QSqlQuery queryInsertData; +// QString output = "insert into WSdb.tblMain (temperature, humidity, pressure) values "; +// QStringList data; +// +// output.append("("); +// data=input.split(","); +// +// for (int i = 1; i < data.size(); i++) { +// bool valid; +// output.append(QString::number(data[i].toInt(&valid, 16))); +// if (i + 1 < data.size()) output.append(","); +// } +// +// output.append(")"); +// } - output.append(")"); - -void HandleMessage::ParseToSQL(QString input) -{ +void HandleMessage::ParseToSQL(QString input) { QSqlQuery queryInsertData; QString output = "INSERT INTO `tblMain` (`temperature`, `humidity`, `pressure`) VALUES "; QStringList data; diff --git a/client/dbconnector.h b/client/dbconnector.h index 82b4f21..527acff 100644 --- a/client/dbconnector.h +++ b/client/dbconnector.h @@ -19,8 +19,8 @@ public: explicit dbConnector(QWidget *parent = nullptr); ~dbConnector(); - static QString getdbName(); - static QString getEspHost(); + QString getdbName(); + QString getEspHost(); private slots: |