separate _get_pub init from _get_sub init
This commit is contained in:
parent
fdf9d661e2
commit
2ac1fe7812
1 changed files with 3 additions and 0 deletions
|
|
@ -118,7 +118,10 @@ bool AdafruitIO_Feed::get()
|
||||||
strcat(_get_topic, "/f/");
|
strcat(_get_topic, "/f/");
|
||||||
strcat(_get_topic, name);
|
strcat(_get_topic, name);
|
||||||
strcat(_get_topic, "/csv/get");
|
strcat(_get_topic, "/csv/get");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!_get_pub)
|
||||||
|
{
|
||||||
_get_pub = new Adafruit_MQTT_Publish(_io->_mqtt, _get_topic);
|
_get_pub = new Adafruit_MQTT_Publish(_io->_mqtt, _get_topic);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue