update
This commit is contained in:
parent
5f4fd8506a
commit
f64b804a7d
2
test.py
2
test.py
|
@ -23,7 +23,7 @@ class MQTTClient:
|
|||
async def push(self):
|
||||
self.client.publish(self.topic, payload=json.dumps({"msg": "open_led"}, ensure_ascii=False),
|
||||
qos=0)
|
||||
await asyncio.sleep(5)
|
||||
await asyncio.sleep(10)
|
||||
self.client.publish(self.topic, payload=json.dumps({"msg": "push_stream"}, ensure_ascii=False),
|
||||
qos=0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue