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-mqtt/issues/225
This commit is contained in:
Euripedes Rocha
2022-06-06 12:52:22 -03:00
parent 493822dc9d
commit 89e5c6014f
3 changed files with 17 additions and 29 deletions

View File

@@ -14,8 +14,7 @@
char *platform_create_id_string(void);
int platform_random(int max);
int64_t 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"); \