Skip to content

Commit e788241

Browse files
committed
Exposed retain in Messaging.publish and set default to False.
1 parent 401b133 commit e788241

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clearblade/Messaging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,6 @@ def unsubscribe(self, channel):
133133
cbLogs.info("Unsubscribing from:", channel)
134134
self.__mqttc.unsubscribe(channel)
135135

136-
def publish(self, channel, message, qos=0):
136+
def publish(self, channel, message, qos=0, retain=False):
137137
cbLogs.info("Publishing", message, "to", channel, ".")
138-
self.__mqttc.publish(channel, message, qos)
138+
self.__mqttc.publish(channel, message, qos, retain)

0 commit comments

Comments
 (0)