Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34b0c87

Browse files
authored
Merge pull request #19 from ClearBlade/develop
Added response from publish function
2 parents 42f2ff2 + b3b64d4 commit 34b0c87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clearblade/Messaging.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,5 @@ def publish(self, channel, message, qos=0, retain=False):
143143
except:
144144
logMsg = "unstringifiable object"
145145
cbLogs.info("Publishing", logMsg, "to", channel, ".")
146-
self.__mqttc.publish(channel, message, qos, retain)
146+
resp = self.__mqttc.publish(channel, message, qos, retain)
147+
return resp

0 commit comments

Comments
 (0)