This commit is contained in:
xyj 2024-01-02 11:30:22 +08:00
parent 5f4fd8506a
commit f64b804a7d
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class MQTTClient:
async def push(self): async def push(self):
self.client.publish(self.topic, payload=json.dumps({"msg": "open_led"}, ensure_ascii=False), self.client.publish(self.topic, payload=json.dumps({"msg": "open_led"}, ensure_ascii=False),
qos=0) qos=0)
await asyncio.sleep(5) await asyncio.sleep(10)
self.client.publish(self.topic, payload=json.dumps({"msg": "push_stream"}, ensure_ascii=False), self.client.publish(self.topic, payload=json.dumps({"msg": "push_stream"}, ensure_ascii=False),
qos=0) qos=0)