adafruit / Adafruit_MQTT_Library

Arduino library for MQTT support
MIT License
566 stars 292 forks source link

Problem with Will Topic in arduino IDE. #188

Open joko2020 opened 3 years ago

joko2020 commented 3 years ago

Hi There, I need to use Will Topic on sketch but I have experiencing problem when using Will topic on example mqtt esp8266.ino The problem arise when I added mqtt.will("/feed/test","offline"); I added those code before mqtt.connect error log image

and I try to change the code like this Adafruit_MQTT.will("/feed/test","offline");

error log image

I'm Using : Arduino IDE : 1.8.12 Adafruit Mqtt Library : 2.1.0 Library installed from Library Manager

Please help to get ride from this problem , or maybe example sketch for using Will topic

Note : I have Already test as given in https://learn.adafruit.com/mqtt-adafruit-io-and-you/qos-and-wills?view=all with the same error