remove unnecessary print, build topic within publish()
This commit is contained in:
parent
eedc5b658d
commit
58a5ca5cbd
1 changed files with 1 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue