added send and update of power state

This commit is contained in:
2018-10-06 14:15:48 +02:00
parent 1a90c8cb99
commit eff21056ec
3 changed files with 70 additions and 26 deletions

View File

@@ -23,15 +23,19 @@ protected:
private slots:
void on_btn_onoff_clicked();
void replyFinished();
void on_txt_address_textEdited(const QString &arg1);
private:
Ui::MainWindow *ui;
QString sendCommand(QString cmd);
QString mAddress;
QNetworkAccessManager *manager;
QNetworkReply *mReply;
bool mPowered = false;
void sendCommand(QString cmd);
void updateUi();
};
}