summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt4
-rw-r--r--main.cpp7
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;