当前位置:网站首页>Mqtt.fx connects to Alibaba cloud Internet of things platform
Mqtt.fx connects to Alibaba cloud Internet of things platform
2022-07-28 17:33:00 【maosql】
Novice entry level mainly describes the general process and their understanding of learning
Forward thinking : Old engineer : Code is not the hardest , The plan is the most difficult . Make clear the plan 、 As long as the code learns it, it will , It will happen sooner or later, right ;
MQTT.fx It is used to debug Alibaba cloud , Just use this configuration , It's the same with SCM configuration , So at the beginning, you don't need to use the board directly. First, use this software to connect Alibaba cloud , Then use the same principle to get it on the board , This chapter focuses on using software to debug Alibaba cloud , SCM provides a general idea
outline :
Different microcontrollers (srm32 51 NXP...), //
Different transmission protocols (MQTT HTTPS 4G modbus...), //MQTT HTTPS It's all based on TCP/IP Application communication protocol on the Protocol ,modbus It is widely used in industry
Different ECs ( Alibaba cloud Hua Wei Yun OneNET( Originator )...), // Tencent cloud , Atomic cloud ( The punctual atoms )
They are similar in use , As long as you learn a way to understand the principle, you can draw inferences from one instance .
step :https://www.processon.com/view/link/6124549ce401fd5228f8f94a password :5555
Cloud configuration :( Here it means STM32 equipment Aliyun server MQTT agreement , The upper configuration is the same )
It can be concluded that the step is 1. Create products ->1.1 Add equipment 2. New projects ->2.1 New application
1. Create products :
Create success :
1.1 Add equipment ( Product selection required , Products must be created first )
Add success :
software test (MQTT.fx) Connect :
Alibaba cloud official website uses MQTT.fx Connect IOT connection steps :
https://help.aliyun.com/document_detail/140507.html
Refer to Alibaba cloud configuration as follows :
Certification certificate of equipment A triple
{
"id": "12345",
"version": "1.0",
"params": {
"Humidity":47.5,"Temperature":79},
"method": "thing.event.property.post"
}
Broker Address Connection domain name
Fixed format :${
YourProductKey}.iot-as-mqtt.${
YourRegionId}.aliyuncs.com.
${
YourProductKey}: Please replace with... Of the product to which the equipment belongs ProductKey. You can log in to the Internet of things platform console , Get... On the device details page of the corresponding instance .
${
YourRegionId}: See regions and zones , Replace with your Region ID.
Integrate :gcanzDyEJg5.iot-as-mqtt.cn-shanghai.aliyuncs.com
Port number :1883( Default )
Client ID MQTT Protocol fields for .
Fixed format :${
ClientID}|securemode=${
Mode},signmethod=${
SignMethod}|
${
ClientId}: equipment 、App or Web And so on Client ID Information .
${
Mode}: safe mode .
securemode=3:TCP Direct Mode , No need to set SSL/TLS Information .
securemode=2:TLS Direct Mode , Need to set up SSL/TLS Information .
${
SignMethod}: Algorithm type , Support hmacmd5 and hmacsha1.
Integrate :12345|securemode=3,signmethod=hmacsha1|
User Name
Fixed format :${
DeviceName}&${
ProductKey}
Integrate :Temp&gcanzDyEJg5
Password
Through the selected encryption method , With the equipment of DeviceSecret As the key ,
After splicing parameters and parameter values , Encryption generation Password.
Generate :86E2D19B4CD7E49A1DDC0961561268E1C78C4C90
How to publish data
Of published data Topic
/sys/gcantktaPzk/test/thing/event/property/post
** Publishing data needs to follow JSON Format , Otherwise, Alibaba cloud will receive errors when parsing **
JSON Format {
"id": "123",
"version": "1.0",
"params": {
"temperature":36
},
"method": "thing.event.property.post"
}
Receive Alibaba cloud data
receive data Topic
/gcantktaPzk/test/user/get


Single chip connection steps :
If you are not using Alibaba cloud dedicated WIFI Modules cannot be selected when creating products WIFi Of , If it is popular esp8266 Words , Or brush the firmware that can be connected to Alibaba cloud , Or choose cellular network 
summary : nothing
边栏推荐
- easyui tree
- Shell编程之Sed
- Verilog 每日一题(VL4 移位运算与乘法)
- [sqoop] sqoop 1.4.7 installation integration cdh5.13
- MySQL implements sorting according to custom (specified order)
- Verilog daily question (vl27 settable counter)
- 【sqoop】sqoop1.4.7 安装集成CDH5.13
- Asynchronous circuit design -- principle and example of synchronous pulser
- Selection and application of inductors in high speed circuits
- 软考回顾总结
猜你喜欢

Verilog daily question (vl14 vending machine 1 -- FSM common question types)

Verilog daily question (vl4 shift operation and multiplication)

谈谈“发布后问题”的度量

Mysql database addition, deletion, modification and query (detailed explanation of basic operation commands)

Zero foundation uses unity3d to develop AR applications and download 3D models remotely

Verilog daily question (vl24 multi bit MUX synchronizer cross time domain output)

WPF command button transparent style
![[Presto] details of the new version upgrade of Presto](/img/12/61ed53ff7a8a810092d60501cca443.png)
[Presto] details of the new version upgrade of Presto

SNAT、DNAT 防火墙规则的备份和还原

Insert text watermark in PDF
随机推荐
Verilog 每日一题 (VL24 多bit MUX同步器 跨时域输出)
Easy to use vscode plug-in memo
C#遍历集合
Verilog 每日一题(VL14 自动贩售机1--FSM常见题型)
Verilog 每日一题(VL8 使用generate…for语句简化代码)
将input type='file' 类型的图片文件转成base64
ionic中的$ionicPopup连续两个调用alert时需要注意的事项
Basic principle of asynchronous FIFO (simple implementation based on Verilog)
Export word according to the template, generate compound format tables and variable column tables
[atlas] atlas compilation error sorting (all)
AMQP protocol details
C language to achieve minesweeping games
高速电路设计实践——概述
Encountered.Sqlite file processing during Android Development
Verilog daily question (vl4 shift operation and multiplication)
Linear algebra and matrix theory (10)
Iris framework practice of goweb development: project summary and review
Asynchronous circuit design -- principle and example of synchronous pulser
Uparse rich text style of uni app
Deploy lamp platform -- compilation and installation of Linux, Apache, MySQL and PHP