adding version date info

This commit is contained in:
richonguzman 2023-07-16 16:24:09 -04:00
parent 9835da6630
commit 0f7aea17c0
5 changed files with 7 additions and 4 deletions

View file

@ -16,10 +16,10 @@
#include "display.h"
#include "utils.h"
Configuration Config;
WiFiClient espClient;
String versionDate = "2023.07.12";
int myWiFiAPIndex = 0;
int myWiFiAPSize = Config.wifiAPs.size();

View file

@ -6,6 +6,8 @@
extern Configuration Config;
extern String fifthLine;
//#define SEALEVELPRESSURE_HPA (1013.25)
namespace BME_Utils {
Adafruit_BME280 bme;

View file

@ -222,7 +222,7 @@ void typeOfPacket(String packet, String packetType) {
void startOTAServer() {
if (stationMode==1 || stationMode==2) {
server.on("/", HTTP_GET, [](AsyncWebServerRequest *request) {
request->send(200, "text/plain", "Hi " + Config.callsign + ", this is your (Richonguzman/CD2RXU) LoRa iGate.\n\nTo update your firmware or filesystem go to: http://" + getLocalIP().substring(getLocalIP().indexOf(":")+2) + "/update\n\n\n73!");
request->send(200, "text/plain", "Hi " + Config.callsign + ", this is your (Richonguzman/CD2RXU) LoRa iGate (version" + versionDate + ").\n\nTo update your firmware or filesystem go to: http://" + getLocalIP().substring(getLocalIP().indexOf(":")+2) + "/update\n\n\n73!");
});
AsyncElegantOTA.begin(&server);
server.begin();