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

@ -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();