rabin 7 年之前
父節點
當前提交
740aeed950
共有 1 個文件被更改,包括 2 次插入2 次删除
  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):