check if temp value received, debugging

This commit is contained in:
Uskompuf 2021-05-19 15:23:11 +10:00
parent c5bad7cf2e
commit afbfc48606
1 changed files with 7 additions and 7 deletions

View File

@ -2973,11 +2973,11 @@ void sondehub_send_data(WiFiClient *client, SondeInfo *s, struct st_sondehub *co
ts = *gmtime(&t); ts = *gmtime(&t);
//TODO send temp, humidity if (((int)s->temperature != 0) && ((int)s->relativeHumidity != 0)) {
//TODO check if valid pos //TODO send temp, humidity
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