diff options
| author | Nikita Kostovsky <luntik2012@gmail.com> | 2025-01-26 11:56:35 +0100 |
|---|---|---|
| committer | Nikita Kostovsky <luntik2012@gmail.com> | 2025-01-26 11:56:35 +0100 |
| commit | be8db2ba14898628598c5c189327c7530679f9f1 (patch) | |
| tree | 9c833c77982f1cff93d68738eb3ee2d43f453f8a | |
| parent | 20a7e68346b07bc47f1ddf425aacf13ac3c339e4 (diff) | |
add rpizero api url to main.cpp
| -rw-r--r-- | CMakeLists.txt | 4 | ||||
| -rw-r--r-- | 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) @@ -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; |
