chasemapper: id format with type, as in auto_rx
This commit is contained in:
parent
e5c2e2db77
commit
6551fa0b5d
|
|
@ -23,8 +23,16 @@ void ConnChasemapper::updateSonde(SondeInfo *si) {
|
||||||
if (TYPE_IS_METEO(realtype)) {
|
if (TYPE_IS_METEO(realtype)) {
|
||||||
realtype = si->d.subtype == 1 ? STYPE_M10 : STYPE_M20;
|
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\","
|
sprintf(buf, "{ \"type\": \"PAYLOAD_SUMMARY\","
|
||||||
"\"callsign\": \"%s\","
|
"\"callsign\": \"%s%s\","
|
||||||
"\"latitude\": %.5f,"
|
"\"latitude\": %.5f,"
|
||||||
"\"longitude\": %.5f,"
|
"\"longitude\": %.5f,"
|
||||||
"\"altitude\": %d,"
|
"\"altitude\": %d,"
|
||||||
|
|
@ -33,6 +41,7 @@ void ConnChasemapper::updateSonde(SondeInfo *si) {
|
||||||
"\"time\": \"%02d:%02d:%02d\","
|
"\"time\": \"%02d:%02d:%02d\","
|
||||||
"\"model\": \"%s\","
|
"\"model\": \"%s\","
|
||||||
"\"freq\": \"%.3f MHz\"",
|
"\"freq\": \"%.3f MHz\"",
|
||||||
|
prefix,
|
||||||
si->d.ser,
|
si->d.ser,
|
||||||
si->d.lat,
|
si->d.lat,
|
||||||
si->d.lon,
|
si->d.lon,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
const char *version_name = "rdzTTGOsonde";
|
const char *version_name = "rdzTTGOsonde";
|
||||||
const char *version_id = "devel20230829";
|
const char *version_id = "devel20231110";
|
||||||
const int SPIFFS_MAJOR=2;
|
const int SPIFFS_MAJOR=2;
|
||||||
const int SPIFFS_MINOR=17;
|
const int SPIFFS_MINOR=17;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue