kopia lustrzana https://github.com/dl9rdz/rdz_ttgo_sonde
Update RX_FSK.ino
rodzic
a8bf1ed7d3
commit
3078a59474
|
@ -3338,8 +3338,8 @@ void sondehub_send_data(WiFiClient * client, SondeInfo * s, struct st_sondehub *
|
||||||
// Only send temp & humidity if provided
|
// Only send temp & humidity if provided
|
||||||
if (((int)s->temperature != 0) && ((int)s->relativeHumidity != 0)) {
|
if (((int)s->temperature != 0) && ((int)s->relativeHumidity != 0)) {
|
||||||
sprintf(w,
|
sprintf(w,
|
||||||
"\"temp\": %.1f,"
|
"\"temp\": %.3f,"
|
||||||
"\"humidity\": %.1f,",
|
"\"humidity\": %.3f,",
|
||||||
float(s->temperature), float(s->relativeHumidity)
|
float(s->temperature), float(s->relativeHumidity)
|
||||||
);
|
);
|
||||||
w += strlen(w);
|
w += strlen(w);
|
||||||
|
|
Ładowanie…
Reference in New Issue