หน้านี้ยังไม่พร้อมใช้งานในภาษาท้องถิ่นของคุณ เรากำลังพยายามอย่างหนักเพื่อเพิ่มเวอร์ชันภาษาอื่น ๆ เพิ่มเติม ขอบคุณสำหรับการสนับสนุนเสมอมา

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

Forwarding Modes

Updated on 2024-11-06 GMT+08:00

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 forwards 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 four data forwarding modes: HTTP/HTTPS, AMQP, MQTT, and M2M communications.

  • HTTP/HTTPS mode
    • Subscription: You can use an application to call the platform APIs to configure and activate rules, or create a subscription task on the console for obtaining changed device service and management details. Service details involve device lifecycle, device data reporting, device message status, and device status. Management details involve software/firmware upgrade status and result. Related APIs: Create a Rule Triggering Condition, Create a Rule Action, and Modify a Rule Trigger Condition. The URL of the application, also called the callback URL, must be specified during subscription. For details, see How Do I Obtain the Callback URL When Calling the Subscription API? .
    • Push: After a subscription is successful, the platform pushes the corresponding change to a specified callback URL based on the type of data subscribed. (For details on the pushed content, see Data Transfer APIs.) If an application does not subscribe to a specific type of data notification, the platform does not push the data to the application even if the data has changed. The platform pushes data, in JSON format, using HTTP or HTTPS. HTTPS requires authentication and is more secure. Therefore, HTTPS is recommended.

    For details, see HTTP/HTTPS Data Forwarding.

  • AMQP mode
    • Subscription: AMQP is short for Advanced Message Queuing Protocol. You can create a subscription task on the IoTDA console, or call platform APIs to configure and activate rules for obtaining changed device service and management details. Service details involve device lifecycle, device data reporting, device message status, and device status. Management details involve software/firmware upgrade status and result. Related APIs: Create a Rule Triggering Condition, Create a Rule Action, and Modify a Rule Triggering Condition. The AMQP message channel must be specified during subscription creation.
    • Push: After a subscription is created, the platform pushes the corresponding change to the specified AMQP message queue based on the type of data subscribed. If an application does not subscribe to a specific type of data notification, the platform does not push the data to the application even if the data has changed. You can use the AMQP client to establish a connection with the platform to receive data.

    For details, see AMQP Data Forwarding.

  • MQTT mode
    • Subscription: You can call platform APIs to configure and activate rules for obtaining the changed device service and management details. Service details involve device lifecycle, device data reporting, device message reporting, and device status. Management details involve software/firmware upgrade status and result. Related APIs:Create a Rule Triggering Condition, Create a rule action, and Modify a Rule Triggering Condition. The topic for receiving push messages must be specified during subscription creation.
    • Push: After a subscription is created, the platform pushes the corresponding change to the specified topic based on the type of data subscribed. If an application does not subscribe to a specific type of data notification, the platform does not push the data to the application even if the data has changed. You can use the MQTT client to establish a connection with the platform to receive data.

    For details, see MQTT Data Forwarding.

  • M2M communications
    • Subscription: You can create rules on the console or call the platform APIs to configure and activate rules for obtaining messages reported by devices from the platform. Related APIs: Create a Rule Trigger Condition, Create a Rule Action, and Modify the Rule Triggering Condition. Device subscription supports only message reporting.
    • Push: After the subscription is successful, the platform pushes messages reported by devices to the specified MQTT topic. After devices are connected to the platform, you can subscribe to the topic to receive data for inter-device message communications.

    For details, see M2M Communications.

Data Forwarding Mode

Application Scenario

Advantage

Restrictions

HTTP/HTTPS subscription/push

An application functions as the server and passively receives messages from the platform.

-

The traffic control limit is 800 TPS per second. HTTP/HTTPS is not recommended for large-traffic push.

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.

MQTT subscription/push

An application functions as a client and can receive messages from IoT cloud services through subscription.

-

For details, see Constraints.

M2M communications

  • Smart home scenario where messages are exchanged between mobile apps and smart devices.
  • Device linkage scenario where devices exchange data and communicate with each other.

Communications among devices are supported.

For details, see Overview.

เราใช้คุกกี้เพื่อปรับปรุงไซต์และประสบการณ์การใช้ของคุณ การเรียกดูเว็บไซต์ของเราต่อแสดงว่าคุณยอมรับนโยบายคุกกี้ของเรา เรียนรู้เพิ่มเติม

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback