mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-05 06:26:46 +00:00
no OTA version
This commit is contained in:
parent
fee397a4d6
commit
036942f4f4
6 changed files with 18 additions and 18 deletions
|
|
@ -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!");
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue