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
100 stars 21 forks source link

Example fails to compile on PlatformIO #122

Closed farfarfromhome closed 10 months ago

farfarfromhome commented 10 months ago

The simple-esp32 example fails to compile on Visual Studio/PlatformIO.

Processing ESP32Test (platform: espressif32; board: nodemcu-32s; framework: arduino) ---------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via-v, --verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/nodemcu-32s.html PLATFORM: Espressif 32 (4.4.0+sha.314a54f) > NodeMCU-32S HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

bertmelis commented 10 months ago

I suspect you're using an outdated version of the Arduino framework.

farfarfromhome commented 10 months ago

That was it. Thanks for your quick response. I am hoping your library will fix instability I see with AsyncMqttClient.

bertmelis commented 10 months ago

fingers crossed. You're on esp32 so probably no need to use the async version and it will be more stable.