Hi, when trying to use this library in a separate task, I can only receive packets when I place the mqtt.loop(); in the main loop (which I normally keep empty) I receive some of the subscribed topics. But since the wifi also gets used by other tasks this causes a crash. When I place the mqtt.loop(); in the 'wifi-handling task' the mqtt.connect() is succesfull and I can subscribe, but receive nothing.
I'm using the ESP32 development board example as template...
Hi, when trying to use this library in a separate task, I can only receive packets when I place the mqtt.loop(); in the main loop (which I normally keep empty) I receive some of the subscribed topics. But since the wifi also gets used by other tasks this causes a crash. When I place the mqtt.loop(); in the 'wifi-handling task' the mqtt.connect() is succesfull and I can subscribe, but receive nothing.
I'm using the ESP32 development board example as template...
please help