chasemapper: id format with type, as in auto_rx

devel2023
Hansi, dl9rdz 2023-11-10 09:43:02 +00:00
rodzic e5c2e2db77
commit 6551fa0b5d
2 zmienionych plików z 11 dodań i 2 usunięć

Wyświetl plik

@ -23,8 +23,16 @@ void ConnChasemapper::updateSonde(SondeInfo *si) {
if (TYPE_IS_METEO(realtype)) {
realtype = si->d.subtype == 1 ? STYPE_M10 : STYPE_M20;
}
char prefix[10];
if(realtype == STYPE_RS41) {
prefix[0] = 0;
}
else {
strncpy(prefix, sondeTypeStrSH[realtype], 10);
strcat(prefix, "-");
}
sprintf(buf, "{ \"type\": \"PAYLOAD_SUMMARY\","
"\"callsign\": \"%s\","
"\"callsign\": \"%s%s\","
"\"latitude\": %.5f,"
"\"longitude\": %.5f,"
"\"altitude\": %d,"
@ -33,6 +41,7 @@ void ConnChasemapper::updateSonde(SondeInfo *si) {
"\"time\": \"%02d:%02d:%02d\","
"\"model\": \"%s\","
"\"freq\": \"%.3f MHz\"",
prefix,
si->d.ser,
si->d.lat,
si->d.lon,

Wyświetl plik

@ -1,4 +1,4 @@
const char *version_name = "rdzTTGOsonde";
const char *version_id = "devel20230829";
const char *version_id = "devel20231110";
const int SPIFFS_MAJOR=2;
const int SPIFFS_MINOR=17;