What is esp-idf exactly?

A call to the setting the mqtt callback is not recognized by the ESP32's Arduino core.

That is similar to my conclusion.