mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-05 14:37:05 +00:00
test2
This commit is contained in:
parent
1b28beb3f4
commit
0870ae39d8
6 changed files with 45 additions and 15 deletions
|
|
@ -262,7 +262,7 @@ void typeOfPacket(String packet, String packetType) {
|
|||
}
|
||||
}
|
||||
|
||||
void startOTAServer() {
|
||||
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/CD2RXU) LoRa iGate , version " + versionDate + ".\n\nTo update your firmware or filesystem go to: http://" + getLocalIP().substring(getLocalIP().indexOf(":")+3) + "/update\n\n\n73!");
|
||||
|
|
@ -276,6 +276,10 @@ void startOTAServer() {
|
|||
request->send(LittleFS, "/index2.html", "text/html");
|
||||
});
|
||||
|
||||
server.on("/testx", HTTP_GET, [](AsyncWebServerRequest *request) {
|
||||
request->send(LittleFS, "/testx.html", "text/html");//"application/json");
|
||||
});
|
||||
|
||||
if (Config.ota.username != "" && Config.ota.password != "") {
|
||||
AsyncElegantOTA.begin(&server, Config.ota.username.c_str(), Config.ota.password.c_str());
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue