separate _get_pub init from _get_sub init

This commit is contained in:
Adam Bachman 2018-04-20 12:00:52 -04:00
parent fdf9d661e2
commit 2ac1fe7812

View file

@ -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);
}