mirror of
				https://github.com/espressif/esp-mqtt.git
				synced 2025-11-04 09:02:14 +01:00 
			
		
		
		
	Changes the moment we update keepalive_tick.
In order to keep sending keep alive messages in the scenario were client publish too often with QoS0 the keepalive is updated when the response is received.
This commit is contained in:
		@@ -27,7 +27,7 @@ int platform_random(int max)
 | 
			
		||||
    return esp_random() % max;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
long long platform_tick_get_ms(void)
 | 
			
		||||
int64_t platform_tick_get_ms(void)
 | 
			
		||||
{
 | 
			
		||||
    struct timeval te;
 | 
			
		||||
    gettimeofday(&te, NULL); // get current time
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user