if you are interested I've imported MQTT files from latest stable version (2.0.3) of lwIP. You can found the it as esp-idf component in my github page https://github.com/voidloop/lwipmqtt.
I've only changed one line of original source code in mqtt.c.
From:
Code: Select all
#include "lwip/timeouts.h"
Code: Select all
#include "lwip/timers.h"