Merge branch 'sondehub' of https://github.com/LukePrior/bsg_ttgo into sondehub

pull/80/head
Uskompuf 2021-05-17 15:57:21 +10:00
rodzic 97b0635dad
commit 6f154f107b
1 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -2961,9 +2961,16 @@ void sondehub_send_data(WiFiClient *client, SondeInfo *s, struct st_sondehub *co
if (s->ser == "") return; // Don't send anything without serial number
t += 18; // convert back to GPS time from UTC time +18s
if (String(sondeTypeStr[s->type]) == "RS41" || String(sondeTypeStr[s->type]) == "RS92" || String(sondeTypeStr[s->type]) == "M10" || String(sondeTypeStr[s->type]) == "M20") {
t += 18; // convert back to GPS time from UTC time +18s
}
ts = *gmtime(&t);
Serial.println(s->temperature);
Serial.println(s->relativeHumidity);
Serial.println(s->validPos);
memset(rs_msg, 0, MSG_SIZE);
w=rs_msg;
@ -2987,6 +2994,8 @@ void sondehub_send_data(WiFiClient *client, SondeInfo *s, struct st_sondehub *co
"\"heading\": %.1f,"
"\"sats\": %d,"
"\"rssi\": %.1f,"
//"\"temp\": %.2f,"
//"\"humidity\": %.2f,"
"\"uploader_position\": [ %s, %s, %s ],"
"\"uploader_antenna\": \"%s\""
"}]",