found problem in DHT stuff -- still not working, though

This commit is contained in:
Ronald Schaten 2016-04-09 11:55:36 +02:00
parent fe1b381924
commit 73395170ac

View File

@ -17,7 +17,9 @@ class DeviceDht : public Device {
private:
byte pin;
byte type;
DHT dht{pin, type};
// TODO configuration via constructor doesn't work yet
//DHT dht{pin, type};
DHT dht{D4, DHT22};
const int INTERVAL_DHT = 60;
unsigned long lastSentDHT = 0;
float humidity, temperature; // raw values from the sensor