From 33687a1b8b7bbc4a3ef6c9e7056e3ffd85af67d7 Mon Sep 17 00:00:00 2001 From: Dennis650 Date: Fri, 11 Oct 2024 20:35:53 +0200 Subject: [PATCH] Switch to https to call GpsRoutes Endpoint --- src/main.cpp | 8 ++++---- src/version.h | 4 ++-- src/web_functions.cpp | 7 ++++--- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f793dfe..fd4a90b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -10,7 +10,7 @@ #include #include #include -#include +//#include #include //#include @@ -37,8 +37,8 @@ void setup() wifiSetup(); - setupBle(); -} + //setupBle(); + } void testmode() { distances.addDistance(50); @@ -66,7 +66,7 @@ void loop() handleWebClient(); handleArduinoOTA(); loopWifiConnect(); - loopBle(); + //loopBle(); trackerGps.readSerialGPS(); diff --git a/src/version.h b/src/version.h index 3bbcdb9..0794905 100644 --- a/src/version.h +++ b/src/version.h @@ -3,7 +3,7 @@ #include -const String version = "0.0.74"; -const String versionDate = "25.06.2023"; +const String version = "0.0.75"; +const String versionDate = "11.10.2024"; #endif diff --git a/src/web_functions.cpp b/src/web_functions.cpp index cad61ff..44a8c24 100644 --- a/src/web_functions.cpp +++ b/src/web_functions.cpp @@ -1,6 +1,6 @@ #include #include -#include +#include #include #include #include @@ -19,10 +19,10 @@ const char *host = "tracker"; WebServer server(80); -WiFiClient wifiClient; +WiFiClientSecure wifiClient; bool firstWifiConnect = true; -const char* urlNewGpxFile = "http://192.168.0.101:14000/api/newgpxfile"; +const char* urlNewGpxFile = "https://192.168.0.101:14000/app/rest/gpxfiles"; void handleIndex() @@ -192,6 +192,7 @@ void sendFiles2Http() { message += "\""; message += "}"; + wifiClient.setInsecure(); HTTPClient httpClient;