found problem in DHT stuff -- still not working, though
This commit is contained in:
parent
fe1b381924
commit
73395170ac
@ -17,7 +17,9 @@ class DeviceDht : public Device {
|
|||||||
private:
|
private:
|
||||||
byte pin;
|
byte pin;
|
||||||
byte type;
|
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;
|
const int INTERVAL_DHT = 60;
|
||||||
unsigned long lastSentDHT = 0;
|
unsigned long lastSentDHT = 0;
|
||||||
float humidity, temperature; // raw values from the sensor
|
float humidity, temperature; // raw values from the sensor
|
||||||
|
Loading…
Reference in New Issue
Block a user