@@ -1,4 +1,7 @@
# WiFiThermostat - Changelog
+## 0.3.3
+* try fixing DHT sensor reading errors by adding some short delay before/after
+
## 0.3.2
* fixed/improved: HTTP authentication handling
* added: device hostname (announced via DHCP) can now be configured
@@ -7,7 +7,7 @@
#define SPIFFS_USE_MAGIC
#define FIRMWARE_NAME "WiFiThermostat"
-#define VERSION "0.3.2"
+#define VERSION "0.3.3"
// default values, can later be overridden via configuration (conf)
#define DEVICE_NAME "WiFiThermo-1"
@@ -1,7 +1,10 @@
void measureTempHum() {
+ delay(1);
float tmpHum = round(dht.readHumidity()) + humCorrVal;
float tmpTemp = dht.readTemperature() + tempCorrVal; // Read temperature as Celsius (the default)
-
int tmpHumInt = tmpHum;
// Check if any reads failed