Skip to content

Commit

Permalink
added some debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
jp112sdl committed Apr 2, 2018
1 parent 4e8636d commit 4b0cc1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/HM-WDS10-TH-I-DHT22/HM-WDS10-TH-I-DHT22.ino
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ class WeatherChannel : public Channel<Hal, List1, EmptyList, List4, PEERS_PER_CH
// here we do the measurement
void measure () {
DPRINT("Measure...\n");
dht22.measure();
if (dht22.measure()) {
DPRINTLN("DHT22 measurement ok.");
} else {
DPRINTLN("DHT22 measurement NOT ok.");
}
humidity = dht22.humidity();
temp = dht22.temperature();
DPRINT("T/H = " + String(temp) + "/" + String(humidity) + "\n");
Expand Down

0 comments on commit 4b0cc1a

Please sign in to comment.