diff --git a/data/igate_conf.json b/data/igate_conf.json
index a0b68d7..7afec30 100644
--- a/data/igate_conf.json
+++ b/data/igate_conf.json
@@ -80,5 +80,6 @@
"backupDigiMode": false,
"rebootMode": false,
"rebootModeTime": 6
- }
+ },
+ "personalNote": ""
}
\ No newline at end of file
diff --git a/data_embed/index.html b/data_embed/index.html
index 7414a25..7643856 100644
--- a/data_embed/index.html
+++ b/data_embed/index.html
@@ -107,9 +107,10 @@
Station
Add your ham callsign and SSID. Optionally,
+ >>Add your ham callsign and SSID. Optionally,
you can leave a comment describing your
- station.
@@ -237,6 +238,20 @@
class="form-control"
/>
+
+ Personal Note
+
+
diff --git a/data_embed/script.js b/data_embed/script.js
index 49344d4..0fedac3 100644
--- a/data_embed/script.js
+++ b/data_embed/script.js
@@ -79,7 +79,7 @@ function loadSettings(settings) {
document.getElementById("beacon.path").value = settings.beacon.path;
document.getElementById("beacon.symbol").value = settings.beacon.symbol;
document.getElementById("beacon.overlay").value = settings.beacon.overlay;
-
+ document.getElementById("personalNote").value = settings.personalNote;
document.getElementById("action.symbol").value = settings.beacon.overlay + settings.beacon.symbol;
document.querySelector(".list-networks").innerHTML = "";
diff --git a/src/configuration.cpp b/src/configuration.cpp
index 0382e42..f35cfad 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -179,6 +179,8 @@ bool Configuration::readFile() {
rebootMode = data["other"]["rebootMode"].as();
rebootModeTime = data["other"]["rebootModeTime"].as();
+ personalNote = data["personalNote"].as();
+
int stationMode = data["stationMode"].as(); // deprecated but need to specify config version
if (stationMode == 0) {
@@ -350,6 +352,8 @@ void Configuration::init() {
rebootMode = false;
rebootModeTime = 0;
+ personalNote = "";
+
Serial.println("All is Written!");
}
diff --git a/src/configuration.h b/src/configuration.h
index b8c5037..8045bd0 100644
--- a/src/configuration.h
+++ b/src/configuration.h
@@ -114,6 +114,7 @@ public:
bool backupDigiMode;
bool rebootMode;
int rebootModeTime;
+ String personalNote;
std::vector wifiAPs;
WiFi_Auto_AP wifiAutoAP;
BEACON beacon;
diff --git a/src/web_utils.cpp b/src/web_utils.cpp
index 3b7616d..560e1f5 100644
--- a/src/web_utils.cpp
+++ b/src/web_utils.cpp
@@ -179,15 +179,15 @@ namespace WEB_Utils {
Config.ota.password = request->getParam("ota.password", true)->value();
- Config.rememberStationTime = request->getParam("other.rememberStationTime", true)->value().toInt();
+ Config.rememberStationTime = request->getParam("other.rememberStationTime", true)->value().toInt();
-
Config.backupDigiMode = request->hasParam("other.backupDigiMode", true);
-
Config.lowPowerMode = request->hasParam("other.lowPowerMode", true);
Config.lowVoltageCutOff = request->getParam("other.lowVoltageCutOff", true)->value().toDouble();
+ Config.personalNote = request->getParam("personalNote", true)->value();
+
Config.writeFile();
AsyncWebServerResponse *response = request->beginResponse(302, "text/html", "");