diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-30 20:44:01 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-30 20:44:01 +0100 |
commit | 7c5d07b85461b84af17440aa9676d18a70edbe87 (patch) | |
tree | 628782951f54bb5fe591adf9d32790114f17de72 /client/HandleMessage.cpp | |
parent | f10fe5ad6bc561f05fcace7bb278e2a50c906208 (diff) |
working v3
Diffstat (limited to 'client/HandleMessage.cpp')
-rw-r--r-- | client/HandleMessage.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/client/HandleMessage.cpp b/client/HandleMessage.cpp index d719157..9599f86 100644 --- a/client/HandleMessage.cpp +++ b/client/HandleMessage.cpp @@ -3,23 +3,6 @@ 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(","); -// } -// -// output.append(")"); -// } - void HandleMessage::ParseToSQL(QString input) { QSqlQuery queryInsertData; QString output = "INSERT INTO `tblMain` (`temperature`, `humidity`, `pressure`) VALUES "; @@ -39,7 +22,6 @@ void HandleMessage::ParseToSQL(QString input) { if (i+1 < list.size()) output.append(","); } - printf("%s\n", output.toStdString().c_str()); queryInsertData.exec(output); } |