rabin 8 년 전
부모
커밋
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):