check if temp value received, debugging
This commit is contained in:
parent
c5bad7cf2e
commit
afbfc48606
|
|
@ -2973,11 +2973,11 @@ void sondehub_send_data(WiFiClient *client, SondeInfo *s, struct st_sondehub *co
|
||||||
|
|
||||||
ts = *gmtime(&t);
|
ts = *gmtime(&t);
|
||||||
|
|
||||||
|
if (((int)s->temperature != 0) && ((int)s->relativeHumidity != 0)) {
|
||||||
//TODO send temp, humidity
|
//TODO send temp, humidity
|
||||||
//TODO check if valid pos
|
|
||||||
Serial.println(s->temperature);
|
Serial.println(s->temperature);
|
||||||
Serial.println(s->relativeHumidity);
|
Serial.println(s->relativeHumidity);
|
||||||
Serial.println(s->validPos);
|
}
|
||||||
|
|
||||||
memset(rs_msg, 0, MSG_SIZE);
|
memset(rs_msg, 0, MSG_SIZE);
|
||||||
w=rs_msg;
|
w=rs_msg;
|
||||||
|
|
@ -3034,7 +3034,7 @@ void sondehub_send_data(WiFiClient *client, SondeInfo *s, struct st_sondehub *co
|
||||||
client->println();
|
client->println();
|
||||||
client->println(w);
|
client->println(w);
|
||||||
Serial.println(w);
|
Serial.println(w);
|
||||||
//String response = client->readString();
|
String response = client->readString();
|
||||||
//Serial.println(response);
|
Serial.println(response);
|
||||||
}
|
}
|
||||||
// End of sondehub v2 related codes
|
// End of sondehub v2 related codes
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue