Browse Source
			
			
			Merge pull request #70 from sude22/AddUptimeMqtt
			
				add uptime MQTT value
			
			
				pull/71/head
			
			
		 
		
			
				
					
						 lumapu
					
					3 years ago
						lumapu
					
					3 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
2 additions and 
0 deletions
			 
			
		 
		
			
				- 
					
					
					 
					tools/esp8266/app.cpp
				
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -266,6 +266,8 @@ void app::loop(void) { | 
			
		
	
		
		
			
				
					|  |  |             } |  |  |             } | 
			
		
	
		
		
			
				
					|  |  |             snprintf(val, 10, "%d", ESP.getFreeHeap()); |  |  |             snprintf(val, 10, "%d", ESP.getFreeHeap()); | 
			
		
	
		
		
			
				
					|  |  |             mMqtt.sendMsg("free_heap", val); |  |  |             mMqtt.sendMsg("free_heap", val); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             snprintf(val, 10, "%d", millis()/1000); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             mMqtt.sendMsg("uptime", val); | 
			
		
	
		
		
			
				
					|  |  |         } |  |  |         } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |         if(mSerialValues) { |  |  |         if(mSerialValues) { | 
			
		
	
	
		
		
			
				
					|  | 
 |