bertmelis / espMqttClient

MQTT 3.1.1 client library for the Espressif devices ESP8266 and ESP32 on the Arduino framework.
https://www.emelis.net/espMqttClient/
MIT License
92 stars 21 forks source link

fix compile error when EMC_MULTIPLE_CALLBACKS 1 #158

Closed serek4 closed 1 month ago

serek4 commented 1 month ago

Simple fix to #include <list> when using multiple callbacks with EMC_MULTIPLE_CALLBACKS set to 1

bertmelis commented 1 month ago

Oh, was this forgotten?

Question though: any specific reason to reorder the includes?

serek4 commented 1 month ago

to include config.h(config.h is included in MqttClient.h) before checking EMC_MULTIPLE_CALLBACKS , so if it is 1 compiler will include \<list> and \<utility>