IoTIoT

Compute
Elastic Cloud Server
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
Domain Name Service
VPC Endpoint
Cloud Connect
Enterprise Switch
Security & Compliance
Anti-DDoS
Web Application Firewall
Host Security Service
Data Encryption Workshop
Database Security Service
Advanced Anti-DDoS
Data Security Center
Container Guard Service
Situation Awareness
Managed Threat Detection
Compass
Cloud Certificate Manager
Anti-DDoS Service
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GaussDB NoSQL
GaussDB(for MySQL)
Distributed Database Middleware
GaussDB(for openGauss)
Developer Services
ServiceStage
Distributed Cache Service
Simple Message Notification
Application Performance Management
Application Operations Management
Blockchain Service
API Gateway
Cloud Performance Test Service
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
DevCloud
ProjectMan
CodeHub
CloudRelease
CloudPipeline
CloudBuild
CloudDeploy
Cloud Communications
Message & SMS
Cloud Ecosystem
Marketplace
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP License Service
Support Plans
Customer Operation Capabilities
Partner Support Plans
Professional Services
enterprise-collaboration
Meeting
IoT
IoT
Intelligent EdgeFabric
DeveloperTools
SDK Developer Guide
API Request Signing Guide
Terraform
HCloud CLI
Updated at: Feb 24, 2022 GMT+08:00

Reporting Data

Interface Function

This interface is used by the device to report data to the IoT platform.

Parameters

Parameter

Mandatory or Optional

Type

Description

msgType

Mandatory

String

This parameter has a fixed value of deviceReq, which indicates that the device reports data to the IoT platform.

data

Mandatory

ServiceData[]

Data of a group of services. When batch data needs to be uploaded, you can specify this parameter. For details about the parameter structure, see the following table.

ServiceData structure

Parameter

Mandatory or Optional

Type

Description

serviceId

Mandatory

String

Service ID.

serviceData

Mandatory

ObjectNode

Data of a service. The detailed parameters are defined in the profile file.

eventTime

Optional

String

Time when the device collects data. The format is yyyyMMddTHHmmssZ, for example, 20161219T114920Z.

If this parameter is not carried in the reported data or the parameter format is incorrect, the time when the IoT platform receives the data prevails.

Example

MQTT 
Topic: /huawei/v1/devices/{deviceId}/data/{codecMode} 
Payload sent by the MQTT client:
{ 
"msgType":"deviceReq", 
"data": [ 
{ 
"serviceId":"{serviceId}", 
"serviceData":{ 
"meterId":"xxxx", 
"dailyActivityTime":120, 
"flow": "565656", 
"cellId":"5656", 
"signalStrength":"99", 
"batteryVoltage":"3.5" 
} 
"eventTime":"20160503T121540Z" 
} , 
{ 
"serviceId": "Battery", 
"serviceData":  {"batteryLevel": 75}, 
"eventTime":"20160503T121540Z" 
} 
] 
}

Did you find this page helpful?

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel