Configuring AMQP Server Subscription
This topic describes how to set and manage AMQP server subscription on the IoT platform.
- Log in to the IoTDA console.
- In the navigation pane, choose , and click Create Rule in the upper right corner.
- Set the parameters based on the table below and click Create Rule.
Parameter
Description
Rule Name
Specify the name of a rule to create.
Description
Describe the rule.
Data Source
- Device: Device information, such as device addition, deletion, and update, will be forwarded. When Data Source is set to Device, quick configuration is not supported.
- Device property: A property value reported by a device in a resource space will be forwarded. Click Quick Configuration on the right and select the product, property, and service data to forward.
- Device message: A message reported by a device in a resource space will be forwarded. Click Quick Configuration on the right and select data of a specified topic to forward. Select the product to which the topic belongs and enter the topic name. You can use a custom topic on the product details page or a preset topic.
- Device message status: The status of device messages exchanged between the device and platform will be forwarded. For details on the device message status, see Message Status. When Data Source is set to Device message status, quick configuration is not supported.
- Device status: The status change of a directly connected device in a resource space will be forwarded. Click Quick Configuration on the right to forward information about devices whose status is Online, Offline, or Abnormal to other services. For details on the status of devices directly connected to the IoT platform, see Device Status.
- Batch task: The batch task status will be forwarded. When Data Source is set to Batch Task, quick configuration is not supported.
Trigger
After the data source is selected, the platform automatically matches the trigger event.
Resource Space
You can select a single resource space or all resource spaces. If All resource spaces is selected, quick configuration is not supported.
- Under Set Forwarding Target, click Add. On the displayed page, set the parameters based on the table below and click OK.
Parameter
Description
Forwarding Target
Select AMQP message queue.
Message Queue
Click Select to select a message queue.
- If no message queue is available, create one. The queue name must be unique and can contain a maximum of 128 characters that consist of letters, numbers, underscores (_), hyphens (-), and vertical bars (|). Other characters such as the slash (/) are not allowed.
- To delete a message queue, click Delete on the right of the message queue.
NOTE:
A subscribed queue cannot be deleted.
- After the rule is defined, click Enable Rule to start forwarding data to the AMQP message queue.
Last Article: Overview
Next Article: AMQP Client Access
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.