Skip to content

Commit 522e3a4

Browse files
authored
Merge pull request #22 from bcmi-labs/devtopic_qos
ucloud: Subscribe to device topic with QoS 1.
2 parents b29de44 + d5b69d1 commit 522e3a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino_iot_cloud/ucloud.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ async def run(self, user_main=None):
322322
logging.error("Failed to connect Arduino IoT cloud.")
323323
return
324324

325-
self.mqtt.subscribe(self.device_topic)
325+
self.mqtt.subscribe(self.device_topic, qos=1)
326326
if user_main is not None:
327327
self.create_task("user_main", user_main, self)
328328
self.create_task("mqtt_task", self.mqtt_task)

0 commit comments

Comments
 (0)