no OTA version

This commit is contained in:
richonguzman
2023-12-21 15:56:59 -03:00
parent fee397a4d6
commit 036942f4f4
6 changed files with 18 additions and 18 deletions
+3
View File
@@ -1,6 +1,9 @@
# Richonguzman / CA2RXU LoRa APRS iGate/Digirepeater
___________________________________________________
NO OTA FOR NOW!!!!
BAD NEWS : AsyncTCP library has a bug and gets this new and old firmware as NOT COMPILING STATUE, SO PLEASE WAIT, as soon as I can I will have it running again!
___________________________________________________
-3
View File
@@ -20,9 +20,6 @@ lib_deps =
sandeepmistry/LoRa@^0.8.0
adafruit/Adafruit GFX Library @ 1.11.5
adafruit/Adafruit SSD1306 @ 2.5.7
ayushsharma82/ElegantOTA@^3.1.0
ottowinter/ESPAsyncWebServer-esphome@^3.1.0
esphome/AsyncTCP-esphome@^2.0.0
mikalhart/TinyGPSPlus @ 1.0.3
adafruit/Adafruit Unified Sensor@^1.1.9
adafruit/Adafruit BME280 Library@^2.2.2
+2 -2
View File
@@ -58,7 +58,7 @@ void setup() {
LoRa_Utils::setup();
Utils::validateDigiFreqs();
iGateBeaconPacket = GPS_Utils::generateBeacon();
Utils::startServer();
//Utils::startServer();
SYSLOG_Utils::setup();
BME_Utils::setup();
}
@@ -82,7 +82,7 @@ void loop() {
if (lastStationModeState == 1) {
iGateBeaconPacket = GPS_Utils::generateBeacon();
lastStationModeState = 0;
Utils::startServer();
//Utils::startServer();
}
APRS_IS_Utils::loop();
} else { // DigiRepeater Mode
+2 -2
View File
@@ -1,4 +1,4 @@
#include <ElegantOTA.h>
//#include <ElegantOTA.h>
#include <WiFi.h>
#include "configuration.h"
#include "aprs_is_utils.h"
@@ -220,7 +220,7 @@ namespace APRS_IS_Utils {
aprsisPacket.concat(espClient.readStringUntil('\r'));
processAPRSISPacket(aprsisPacket);
}
ElegantOTA.loop();
//ElegantOTA.loop();
}
}
}
+9 -9
View File
@@ -1,6 +1,6 @@
#include <ESPAsyncWebServer.h>
/*#include <ESPAsyncWebServer.h>
#include <ElegantOTA.h>
#include <AsyncTCP.h>
#include <AsyncTCP.h>*/
#include <SPIFFS.h>
#include <WiFi.h>
#include "configuration.h"
@@ -16,7 +16,7 @@
#include "display.h"
#include "utils.h"
AsyncWebServer server(80);
//AsyncWebServer server(80);
extern WiFiClient espClient;
extern Configuration Config;
@@ -50,9 +50,9 @@ unsigned long ota_progress_millis = 0;
namespace Utils {
void notFound(AsyncWebServerRequest *request) {
/*void notFound(AsyncWebServerRequest *request) {
request->send(404, "text/plain", "Not found");
}
}*/
void processStatus() {
String status = Config.callsign + ">APLRG1,WIDE1-1";
@@ -314,7 +314,7 @@ namespace Utils {
}
}
void onOTAStart() {
/*void onOTAStart() {
Serial.println("OTA update started!");
display_toggle(true);
lastScreenOn = millis();
@@ -342,8 +342,8 @@ namespace Utils {
show_display("", "", " OTA update fail!", "", "", "", "", 4000);
}
}
void startServer() {
*/
/*void startServer() {
if (stationMode==1 || stationMode==2 || (stationMode==5 && WiFi.status()==WL_CONNECTED)) {
server.on("/", HTTP_GET, [](AsyncWebServerRequest *request) {
request->send(200, "text/plain", "Hi " + Config.callsign + ", \n\nthis is your (Richonguzman/CA2RXU) LoRa APRS iGate , version " + versionDate + "\n\nTo update your firmware or filesystem go to: http://" + getLocalIP().substring(getLocalIP().indexOf(":")+3) + "/update\n\n\n73!");
@@ -391,6 +391,6 @@ namespace Utils {
server.begin();
Serial.println("init : OTA Server ... done!");
}
}
}*/
}
+2 -2
View File
@@ -14,10 +14,10 @@ namespace Utils {
void checkWiFiInterval();
void validateDigiFreqs();
void typeOfPacket(String packet, String packetType);
void onOTAStart();
/*void onOTAStart();
void onOTAProgress(size_t current, size_t final);
void onOTAEnd(bool success);
void startServer();
void startServer();*/
}