当前位置:网站首页>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
边栏推荐
- Is it safe to choose mobile phone for stock trading account opening in Hangzhou?
- leetcode 474. Ones and zeroes (medium)
- The programmer's girlfriend gave me a fatigue driving test
- Redis - cache penetration, cache breakdown, cache avalanche
- Combining online and offline, VR panorama is a good way to transform furniture online!
- What SQL statements are supported for data filtering
- How do it outsourcing resident personnel position their pain points?
- [designmode] singleton pattern
- 1. crawler's beautifulsoup parsing library & online parsing image verification code
- Netease cloud sign in lottery? That year I could sign in for 365 days. No? Look.
猜你喜欢

2022-2028 global ultra high purity electrolytic iron powder industry research and trend analysis report

什么是SRM系统,如何规范公司内部采购流程

Detailed explanation of conv2d -- use in arrays and images

Why did kubernetes win? The changes in the container circle!

Design e-commerce seckill system

Netease cloud sign in lottery? That year I could sign in for 365 days. No? Look.

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

206 page Shanghai BIM Technology Application and development report 2021

CentOS install MySQL

The programmer's girlfriend gave me a fatigue driving test
随机推荐
Design e-commerce seckill system
Random ball size, random motion collision
如何关闭一个开放的DNS解析器
76页智慧物流园区综合解决方案2022(附下载)
Rust controls Dajiang programmable UAV Tello
Combining online and offline, VR panorama is a good way to transform furniture online!
leetcode 474. Ones and Zeroes 一和零(中等)
Never use redis expired monitoring to implement scheduled tasks!
206页上海BIM技术应用与发展报告2021
[PHP] self developed framework qphp, used by qphp framework
Arthas debugging problem determination Toolkit
DNS server setup, forwarding, master-slave configuration
HP notebook disable touchpad after mouse is inserted
Repetition is the mother of skill
1. crawler's beautifulsoup parsing library & online parsing image verification code
[designmode] factory pattern
Is it safe to open a stock account of Huatai Securities online?
2022-2028 global ICT test probe industry research and trend analysis report
2022-06-30: what does the following golang code output? A:0; B:2; C: Running error. package main import “fmt“ func main()
To tell you the truth, ThreadLocal is really not an advanced thing