Change QOS and Time polling sensors
This commit is contained in:
@@ -100,7 +100,7 @@ void loop() {
|
||||
rel_hum += (htu.readHumidity() - rel_hum) / 6.0f;
|
||||
digitalWrite(PWR_SENS, LOW);
|
||||
}
|
||||
if(++measCnt == 9){
|
||||
if(++measCnt == 29){
|
||||
digitalWrite(PWR_SENS, HIGH);
|
||||
measCnt = 0;
|
||||
}
|
||||
@@ -146,8 +146,8 @@ void publishMin()
|
||||
dtostrf(rel_hum, 6, 1, strFVal);
|
||||
client.publish("/home/smallroom/rel_hum", strFVal);
|
||||
}
|
||||
itoa(cRun, strFVal, 10);
|
||||
client.publish("/home/smallroom/millis", strFVal);
|
||||
// itoa(cRun, strFVal, 10);
|
||||
// client.publish("/home/smallroom/millis", strFVal);
|
||||
//digitalWrite(LED_BLUE, LOW);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user