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:
Euripedes Rocha
2022-03-22 14:26:49 -03:00
parent 5878e2e8a6
commit 2c2e6f38b5
4 changed files with 43 additions and 25 deletions

View File

@@ -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