Overview
A device can connect to and communicate with the platform. The device reports data to the platform using custom topics or product models. After the subscription/push configuration on the console is complete, the platform pushes messages about device lifecycle changes, reported device properties, reported device messages, device message status changes, device status changes, and batch task status changes to the application.
The platform supports two subscription modes: HTTP/HTTPS and AMQP.
- HTTP/HTTPS subscription/push: An application calls the platform APIs Creating a Rule Trigger Condition, Creating a Rule Action, and Modifying a Rule Trigger Condition to configure and activate rules. The platform pushes the changed device service details and management details to the application with a specified URL. (Service details include device lifecycle management, device data reporting, device message status, and device status. Management details include software/firmware upgrade status and result.)
- AMQP subscription/push: Data can be forwarded without interconnecting with other HUAWEI CLOUD services. An application calls the platform APIs Creating a Rule Trigger Condition, Creating a Rule Action, and Modifying a Rule Trigger Condition to configure and activate rules. After a connection is established between the AMQP client and the platform, the platform pushes the changes to a specified AMQP message queue based on the type of data subscribed. For details, see AMQP Subscription/Push.
|
Subscription/Push |
Application Scenario |
Advantages and Disadvantages |
Restrictions |
|---|---|---|---|
|
HTTP/HTTPS subscription/push |
An application functions as the server and passively receives messages from the platform. |
Data cannot be obtained proactively. |
- |
|
AMQP subscription/push |
An application functions as the client and proactively pulls messages from the platform or passively receives messages from the platform by means of listening. |
Data can be obtained proactively. |
For details, see Connection Specifications. |
Last Article: Subscription and Push
Next Article: HTTP/HTTPS Subscription/Push
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.