From be8db2ba14898628598c5c189327c7530679f9f1 Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Sun, 26 Jan 2025 11:56:35 +0100 Subject: add rpizero api url to main.cpp --- CMakeLists.txt | 4 ++-- main.cpp | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a92f17..3515951 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,8 +44,8 @@ target_link_libraries(appeurydice PRIVATE Qt6::Widgets Qt6::Quick - #qcustomplot-qt6 - qcustomplot + qcustomplot-qt6 + # qcustomplot ) target_compile_definitions(app${PROJECT_NAME} PRIVATE QCUSTOMPLOT_USE_LIBRARY) diff --git a/main.cpp b/main.cpp index 60ae18c..9a11473 100644 --- a/main.cpp +++ b/main.cpp @@ -60,8 +60,10 @@ int main( profileGraph->setScatterStyle(QCPScatterStyle::ssDot); profileGraph->setData(x_pixels, y_pixels); - QNetworkRequest pixelsRequest(QUrl("http://rpi5:8081/v1/pixels")); - QNetworkRequest profileRequest(QUrl("http://rpi5:8081/v1/profile")); + // QNetworkRequest pixelsRequest(QUrl("http://rpi5:8081/v1/pixels")); + // QNetworkRequest profileRequest(QUrl("http://rpi5:8081/v1/profile")); + QNetworkRequest pixelsRequest(QUrl("http://rpizero:8081/v1/pixels")); + QNetworkRequest profileRequest(QUrl("http://rpizero:8081/v1/profile")); auto manager = new QNetworkAccessManager(&app); QTimer pixelsAutoRestartTimer(&app); @@ -83,6 +85,7 @@ int main( // qDebug() << "replyFinished"; if (reply->error()) { qDebug() << "replyFinished:" << reply->errorString(); + qDebug() << "url was:" << reply->request().url(); reply->deleteLater(); return; -- cgit v1.2.3-70-g09d2