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 /client/HandleMessage.cpp | |
parent | 64453a2c5d073b3cfb88cf43493d396881d7e058 (diff) |
fix compilation errors after merge
Diffstat (limited to 'client/HandleMessage.cpp')
-rw-r--r-- | client/HandleMessage.cpp | 34 |
1 files changed, 17 insertions, 17 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; |