当前位置:网站首页>Meiker Studio - Huawei 14 day Hongmeng equipment development practical notes 8
Meiker Studio - Huawei 14 day Hongmeng equipment development practical notes 8
2022-07-26 11:34:00 【51CTO】
One .OpenHarmony Network application development —— Connect to Huawei loT platform
1. Huawei loT Platform is introduced
Huawei cloud IOT platform is Huawei device access service (IoT Device Access), Provide massive devices to connect to the cloud 、 Two way messaging between devices and the cloud 、 Batch equipment management 、 Remote control and monitoring 、OTA upgrade 、 Equipment linkage rules and other capabilities , And the device data can be transferred , The live stream is transferred to other services of Huawei cloud , Help Internet of things industry users quickly complete equipment networking and industry application integration .

Huawei IoT Platform address : https://www.huaweicloud.com/product/iothub.html
2. Huawei loT Platform product creation
The product model is used to describe the capabilities and characteristics of the equipment . Developers define product models , Build an abstract model of devices on the Internet of things platform , Make the platform understand the services supported by this device 、 attribute 、 Information such as orders , Such as color 、 Switch, etc .

3. Huawei IoT Platform product creation
Service information :
service ID | Service type |
Agriculture | Senser |
Attribute information :
The attribute name | data type |
Temperature | int |
Humidity | int |
Luminance | int |
LightStatus | string |
MotorStatus | string |
Command message :
Command name | Parameter name | data type | length | enumeration |
Agriculture_Control_light | light | string | 3 | ON,OFF |
Agriculture_Control_Motor | Motor | string | 3 | ON,OFF |
4. Equipment docking with Huawei loT platform
open "D6_iot_cloud_oc" engineering iot_cloud_OC_sample.c file , See the implementation MQTT The agreement connects Huawei IoT Platform code .


Generate device docking information website : https://iot-tool.obs-website.cn-north-4.myhuaweicloud.com/
5. Equipment docking with Huawei loT platform
The case will demonstrate how to BearPi-HM_Nano Use on development board MQTT The protocol connects Huawei IoT platform , Need to put E53_IA1 Smart agriculture expansion board and BearPi-HM_Nano The development board is installed together .

E53_IA1 Smart agriculture expansion board purchase address : https://item.taobao.com/item.htm?id=607878490044
边栏推荐
- Admit it, investing in new energy is for security
- JVM基本概念及内存管理模型
- Relationship between pixels and memory
- MongoDB-使用$type查询某个字段的类型是否为xxx
- js使用WebUploader做大文件的分块和断点续传
- List and dictionary instance applications (※)
- 承认吧 投新能源就是为了安全感
- Creation and modification of basic tables and data in them by SQL statements of SQL Server
- 如何使用数据管道实现测试现代化
- 二分模板总结
猜你喜欢

swagger2.9.2教程 与swagger3.0.0教程

Simple use of MySQL database

702 horsepower breaks through 100 in only 4.5 seconds! The strongest pickup truck comes, safe and comfortable

Getting started step by step using g2o to solve ICP problems - estimating the transformation relationship between two sets of 3D point sets with matching relationship

easyui05

服务器内存故障预测居然可以这样做!

Data visualization - White Snake 2: black snake robbery (2)

MySQL deadlock analysis

Build neural network from simple to deep

Generation and transformation of pulse waveform
随机推荐
C notes
Why give up NPM and turn to yarn
复现php一句话木马
PostgreSQL在Linux和Windows安装和入门基础教程
[cloud resident co creation] decrypt how sparkrtc realizes ultra-low latency interaction globally
[报错]Exception: Found duplicate column(s) in the data schema: `value`;
10 个 Reduce 常用“奇技淫巧”
如何配置JdbcRealm数据源呢?
Back to the top of several options (JS)
Notes on intellectual property law in Yu classroom
MySql基础知识汇总
Orbslam2 cmakelists File Structure Parsing
What does it mean that the configuration file ends in RC
3dunity game project actual combat - aircraft war
外包干了四年,废了...
[reprint] the multivariate normal distribution
3dunity game project practice - first person shooting game
线程之间的几种通信方式
公司无法访问b站
Pyqt5 rapid development and practice Chapter 1 understanding pyqt5