2026-08-07 16:40:34 +08:00
|
|
|
from chongming_mqtt import InternalMQTTClient
|
|
|
|
|
import asyncio
|
|
|
|
|
|
|
|
|
|
client = InternalMQTTClient(uri="mqtt://admin:Mixc%402021@dg.datagoo.cn:48081")
|
|
|
|
|
|
|
|
|
|
async def main():
|
|
|
|
|
await client.start()
|
|
|
|
|
|
|
|
|
|
resp = await client.request(
|
|
|
|
|
request_topic="/edge_app_controller",
|
|
|
|
|
response_topic="/edge_app_controller_reply",
|
|
|
|
|
payload={"Event":"/alg_media_fetch","BoardId":"RJ-BMOX-0DCB100E3F0F4C8DEE2D189DC4DB2DAE"},
|
|
|
|
|
timeout=5
|
|
|
|
|
)
|
|
|
|
|
print(f"Response: {resp}")
|
|
|
|
|
await client.stop()
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2026-08-20 15:03:31 +08:00
|
|
|
asyncio.run(main())
|
|
|
|
|
|