fix: MQTT tick not starting on connect and switch to esp_timer

- Tick should be updated on connect
- Dependency of system timer removed to avoid issues when updating via
  SNTP

Closes https://github.com/espressif/esp-idf/issues/9492
This commit is contained in:
Euripedes Rocha authored and David Cermak committed 2022-10-26 12:50:34 +02:00
1 parent 64cd608307
commit 166741fd6d
3 files changed
+49 -33

No files matched your search

+2 -2
View File
@@ -9,12 +9,12 @@
#include "freertos/FreeRTOS.h"
#include "freertos/event_groups.h"
#include <stdint.h>
#include <sys/time.h>
char *platform_create_id_string(void);
int platform_random(int max);
long long platform_tick_get_ms(void);
void ms_to_timeval(int timeout_ms, struct timeval *tv);
uint64_t platform_tick_get_ms(void);
#define ESP_MEM_CHECK(TAG, a, action) if (!(a)) { \
ESP_LOGE(TAG,"%s(%d): %s", __FUNCTION__, __LINE__, "Memory exhausted"); \