rabin 7 years ago
parent
commit
740aeed950
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mqtt.py

+ 2 - 2
mqtt.py

@@ -59,8 +59,8 @@ class Pub(object):
 	def __del__(self):
 		pass
 
-	def push(self, key, msg):
-		self.connect.getClient().publish(key,msg)
+	def push(self, key, msg, qos=0, retain=False):
+		self.connect.getClient().publish(key,msg,qos,retain)
 
 
 class Sub(object):