diff --git a/src/AdafruitIO_Feed.cpp b/src/AdafruitIO_Feed.cpp index 66c5835..021c465 100644 --- a/src/AdafruitIO_Feed.cpp +++ b/src/AdafruitIO_Feed.cpp @@ -118,7 +118,10 @@ bool AdafruitIO_Feed::get() strcat(_get_topic, "/f/"); strcat(_get_topic, name); strcat(_get_topic, "/csv/get"); + } + if (!_get_pub) + { _get_pub = new Adafruit_MQTT_Publish(_io->_mqtt, _get_topic); }