mirror of
https://github.com/anklimov/lighthub
synced 2025-12-07 12:19:49 +03:00
ccs811 & hdc1080 integration done
mqtt publish to abstrchin added http connection error threating for ESPx, DUE, STM fixed ESP8266 pin conflict between sensor WAK and DMX OUT fixed DHT begin added
This commit is contained in:
@@ -362,6 +362,7 @@ void Input::dht22Poll() {
|
||||
float humidity = roundf(dhtSensorData.humidity);
|
||||
#else
|
||||
DHT dht(pin, DHT22);
|
||||
dht.begin();
|
||||
float temp = dht.readTemperature();
|
||||
float humidity = dht.readHumidity();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user