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 --- main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'main.cpp') 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