querys and corrections

This commit is contained in:
richonguzman 2023-05-23 00:56:39 -04:00
parent 253fd4a736
commit 9136ced527
2 changed files with 8 additions and 8 deletions

View file

@ -1,13 +1,13 @@
{
"callsign": "CD2RXU-10",
"callsign": "NOCALL-10",
"comment": "LoRa_APRS_iGate https://github.com/richonguzman/LoRa_APRS_iGate",
"beacon_interval": 15,
"wifi": {
"AP": [
{ "SSID": "Richon",
"Password": "k4fPnmg5qnyf",
"Latitude": -33.0337938,
"Longitude": -71.5736974
{ "SSID": "WiFi_AP_1",
"Password": "password_WiFi_1",
"Latitude": 0.0000000,
"Longitude": 0.0000000
},
{ "SSID": "WiFi_AP_2",
"Password": "password_WiFi_2",
@ -17,7 +17,7 @@
]
},
"aprs_is": {
"passcode": "23201",
"passcode": "VWXYZ",
"server": "soam.aprs2.net",
"port": 14580,
"software_name" : "ESP32_LoRa_iGate",
@ -32,7 +32,7 @@
"power": 20
},
"display": {
"always_on": false,
"always_on": true,
"timeout": 2
}
}

View file

@ -178,7 +178,7 @@ String processQueryAnswer(String query, String station) {
} else if (query.indexOf("?APRSV") == 0 || query.indexOf("?aprsv") == 0 || query.indexOf("?Aprsv") == 0) {
processedQuery = Config.aprs_is.software_name + " " + Config.aprs_is.software_version;
} else if (query.indexOf("?APRSP") == 0 || query.indexOf("?aprsp") == 0 || query.indexOf("?Aprsp") == 0) {
processedQuery = "iGate Position : " + String(currentWiFi->latitude) + " " + String(currentWiFi->longitude);
processedQuery = "iGate QTH: " + String(currentWiFi->latitude) + " " + String(currentWiFi->longitude);
} else if (query.indexOf("?APRSL") == 0 || query.indexOf("?aprsl") == 0 || query.indexOf("?Aprsl") == 0) {
for (int i=0; i<lastHeardStation.size(); i++) {
processedQuery += lastHeardStation[i].substring(0,lastHeardStation[i].indexOf(",")) + " ";