Skip to content

Commit

Permalink
Switch to https to call GpsRoutes Endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis650 committed Oct 11, 2024
1 parent b534171 commit 33687a1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <TrackerGps.h>
#include <Distances.h>
#include <TrackerSD.h>
#include <ble.h>
//#include <ble.h>
#include <ScreenBoot.h>
//#include <ANCS_functions.h>

Expand All @@ -37,8 +37,8 @@ void setup()

wifiSetup();

setupBle();
}
//setupBle();
}

void testmode() {
distances.addDistance(50);
Expand Down Expand Up @@ -66,7 +66,7 @@ void loop()
handleWebClient();
handleArduinoOTA();
loopWifiConnect();
loopBle();
//loopBle();

trackerGps.readSerialGPS();

Expand Down
4 changes: 2 additions & 2 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <Arduino.h>

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
7 changes: 4 additions & 3 deletions src/web_functions.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <Arduino.h>
#include <WiFi.h>
#include <WiFiClient.h>
#include <WiFiClientSecure.h>
#include <WiFiAP.h>
#include <WebServer.h>
#include <ESPmDNS.h>
Expand All @@ -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()
Expand Down Expand Up @@ -192,6 +192,7 @@ void sendFiles2Http() {
message += "\"";
message += "}";

wifiClient.setInsecure();

HTTPClient httpClient;

Expand Down

0 comments on commit 33687a1

Please sign in to comment.