当前位置:网站首页>Basic knowledge of Embedded Network - introduction of mqtt
Basic knowledge of Embedded Network - introduction of mqtt
2022-07-01 00:12:00 【Please trust me】
List of articles
Basic knowledge of network
IP And the role of ports
During network transmission , adopt IP And port to express yourself and the other side .
IP:IP Address , Include host number + network number . Used to represent a device connected to the Internet .
port : Ports represent transport layer to application layer , Data transmission channels , Each application corresponds to a different port .
Public network IP Not enough use
IP And ports are important , however IP Not enough use :
- In the home , In the company , Only routers have public networks IP
- Other computers are just local area networks IP, such as 192.168.x.x
- Your home computer , The company's computers ,IP All are 192.168.0.100, But they don't conflict : Because they are in different LAN ( The connected routers are different )
- Computers in the LAN access the public network , You need a router to help !

On a foreign visit , Router to help
a key :
IP And ports are important , however IP Not enough use : So we need a router to help .
How to help ?
client 1: To his own IP Address and port number ( hypothesis 192.168.200.11), And the domain name of the server to be accessed ( hypothesis :qq.com) To the router
Router 1: Router 1 Received the information from the client , Client side IP Replace the address and port number with your own public network IP, And send data to qq.com.qq.com Received a request , It will reply the data to the router
Router 1: Router 1 received qq.com The news will be in your own NAT The transformation mapping table looks up whether there is a device for this request , Send data to the device if there is . If not, lose the data .


So it's not hard to find out , Servers are needed as a bridge between two different LAN devices that send and receive messages from each other .
How to transmit data between the two sides ?
On the hardware
Both sides need to be connected to the Internet , mobile phone , And the development board .
Agreement on
The so-called agreement : It means that both the sender and the receiver reach an agreement . That is, the rules that both parties must abide by .
In the Internet of things ,MQTT More suitable for . Because its data size is very small , It's perfect for .
MQTT download
Recommended kawail-mqtt, It was written by a big cow in China , very nice.
kawail-mqtt, Consciousness is Kawaii MQTT, Lovely MQTT.
Domestic open source address Open source address


summary
Thank you very much for your teaching and answers , Thank you for your teaching .
It is highly recommended that you learn embedded , Hundreds of questions !
Official website of baiwen.com
边栏推荐
- 异步過渡方案—Generator
- 5G智慧建筑解决方案2021
- Netease cloud sign in lottery? That year I could sign in for 365 days. No? Look.
- Explain kubernetes backup and recovery tools velero | learn more about carina series phase III
- 8253A寄存器浅析
- Cesiumjs 2022 ^ source code interpretation [6] - new architecture of modelempirical
- Is it safe to buy funds on the compass?
- How to distinguish between platform security and online hype? What are the stop loss techniques for online speculation?
- CentOS install MySQL
- Redis - how to understand publishing and subscribing
猜你喜欢

Inventory the six second level capabilities of Huawei cloud gaussdb (for redis)

The full technology stack, full scene and full role cloud native series training was launched to help enterprises build a hard core cloud native technology team

Why should VR panoramic shooting join us? Leverage resources to achieve win-win results

2022-2028 global single travel industry research and trend analysis report

Wordpress blog uses volcano engine veimagex for static resource CDN acceleration (free)

ABAQUS 2022 latest edition - perfect realistic simulation solution

76页智慧物流园区综合解决方案2022(附下载)

Redis - understand the master-slave replication mechanism

Software supply chain security risk pointing North for enterprise digitalization and it executives

206 page Shanghai BIM Technology Application and development report 2021
随机推荐
什么是SRM系统,如何规范公司内部采购流程
C language array interception, C string by array interception method (c/s)
composer
Makefile notes (Yiwen Institute makefile)
6-1 exploit -ftp exploit
Matlab saves triangulation results as STL files
ABAQUS 2022 software installation package and installation tutorial
A detailed explanation of the implementation principle of go Distributed Link Tracking
Fund sales code of conduct and information management
Gateway service gateway
shell 同时执行多任务下载视频
2022-2028 global ICT test probe industry research and trend analysis report
lvm-snapshot:基于LVM快照的备份
Fund managers' corporate governance and risk management
The full technology stack, full scene and full role cloud native series training was launched to help enterprises build a hard core cloud native technology team
To tell you the truth, ThreadLocal is really not an advanced thing
Software supply chain security risk pointing North for enterprise digitalization and it executives
Error 2059 when Navicat connects to MySQL
高等数学建模
76页智慧物流园区综合解决方案2022(附下载)