|
|
|
@ -128,6 +128,8 @@ void handle_Restore() {
|
|
|
|
|
|
|
|
|
|
void handle_Cfg() {
|
|
|
|
|
String jsonData = "{";
|
|
|
|
|
jsonData += jsonLineFromPreferenceString(PREF_APRS_MODE);
|
|
|
|
|
jsonData += jsonLineFromPreferenceString(PREF_APRS_FREQ);
|
|
|
|
|
jsonData += String("\"") + PREF_WIFI_PASSWORD + "\": \"" + jsonEscape((preferences.getString(PREF_WIFI_PASSWORD).isEmpty() ? String("") : "*")) + R"(",)";
|
|
|
|
|
jsonData += jsonLineFromPreferenceString(PREF_WIFI_SSID);
|
|
|
|
|
jsonData += jsonLineFromPreferenceString(PREF_APRS_CALLSIGN);
|
|
|
|
@ -178,6 +180,9 @@ void handle_ReceivedList() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void handle_SaveAPRSCfg() {
|
|
|
|
|
if (server.hasArg(PREF_APRS_MODE) && !server.arg(PREF_APRS_MODE).isEmpty()){
|
|
|
|
|
preferences.putString(PREF_APRS_MODE, server.arg(PREF_APRS_MODE));
|
|
|
|
|
}
|
|
|
|
|
if (server.hasArg(PREF_APRS_CALLSIGN) && !server.arg(PREF_APRS_CALLSIGN).isEmpty()){
|
|
|
|
|
preferences.putString(PREF_APRS_CALLSIGN, server.arg(PREF_APRS_CALLSIGN));
|
|
|
|
|
}
|
|
|
|
|