remove unnecessary print, build topic within publish()

This commit is contained in:
brentru 2019-10-10 11:29:51 -04:00
parent eedc5b658d
commit 58a5ca5cbd

View file

@ -286,9 +286,7 @@ class MQTT_CLIENT:
:param int qos: Optional quality of service level.
"""
topic = self.shadow_topic+"/update"
print(topic)
self.client.publish(topic, state_document, qos)
self.client.publish(self.shadow_topic+"/update", state_document, qos)
def shadow_get(self):
"""Publishes an empty message to shadow get topic to get the device's shadow.