mirror of
				https://github.com/revspace/operame
				synced 2025-10-31 11:35:36 +00:00 
			
		
		
		
	Merge pull request #6 from controlco2/bugfix/check-temp-hum-flag
bugfix: check if the user wants to send temperature and humidity via …
This commit is contained in:
		
						commit
						ca29d59c08
					
				| @ -610,6 +610,7 @@ void loop() { | ||||
|  	    serializeJson(doc, message); | ||||
| 	    retain(mqtt_topic, message); | ||||
| 
 | ||||
| 	    if(mqtt_temp_hum_enabled) { | ||||
| 	    	//temperature
 | ||||
| 	    	if(isnan(t)) { | ||||
| 			Serial.println("Failed to read from DHT sensor, so no MQTT publish"); | ||||
| @ -641,6 +642,7 @@ void loop() { | ||||
|             	} | ||||
| 	    }	  | ||||
| 	} | ||||
|     } | ||||
| 
 | ||||
|     if (rest_enabled) { | ||||
|         while(wificlientsecure.available()){ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user