This demo mainly takes python as an example to demonstrate how to create a test project step by step for developers who are new to OneNET MQ.
Download and extract demo projectAfter that, you should be able to find that an OneNET-MQ-Demo-Python folder has been added locally.
access_key = 'your MQ access_key'
namespace = 'your MQ instance name'
topic_name1 = 'name of topic you created'
sub_name1 = 'name of subscription you created'
step1:Message production is shown in the Message Production Guide.Please forward messages to MQ topics.
step2:In terms of message consumption, run the main function in mq_recv_client.py to connect to the service and consume messages from the queue. After success, you can observe successfully consumed messages in Console.