diff options
Diffstat (limited to 'sample/test-cloud-app/app/mainwindow.cpp')
-rwxr-xr-x | sample/test-cloud-app/app/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/test-cloud-app/app/mainwindow.cpp b/sample/test-cloud-app/app/mainwindow.cpp index 355847c..1fcf50c 100755 --- a/sample/test-cloud-app/app/mainwindow.cpp +++ b/sample/test-cloud-app/app/mainwindow.cpp @@ -58,7 +58,6 @@ void MainWindow::updateStat() str.append("\n\nLast received message:\n"); str.append(lastReceivedMsg); ui->statLabel->setText(str); - //QApplication::processEvents(); } void MainWindow::sendMsgButtonClick() @@ -66,7 +65,8 @@ void MainWindow::sendMsgButtonClick() qDebug() << "MainWindow::sendMegButtonClick()"; std::string msg = std::string{"{\"app_key\": \"app_value_"} + std::to_string(sendCount + sendErrorCount) + "\"}"; - int res = g_cloudproxyclient->sendMessage(msg); + static int i{0}; + int res = g_cloudproxyclient->sendMessage((++i%2 ? CloudType::Azure : CloudType::Aws), msg); if (res == 0) ++sendCount; else |