What is the difference between MQTT protocol and TCP protocol? Why does someone recommend MQTT protocol?

MQTT protocol is the abbreviation of message queue telemetry transmission, which is called message queue telemetry transmission in Chinese. Is an instant messaging protocol that supports all platforms and can be used as a sensor. For example, do you only make one at home through this agreement? Sensor? There are medical equipment and devices at home, and wireless transmitters are installed, which is very suitable for patients with old diseases who need regular check-ups. At home, you can use the equipment for self-inspection and send the inspection results to the doctor in charge of you through wireless MQTT protocol. Doctors can check your health at any time and give reasonable suggestions, which greatly facilitates the communication between users and doctors. Therefore, the development prospect of MQTT protocol in pushing information and fast instant is considerable.

Anyone who has studied computer is familiar with TCP protocol. It has four layers, is connection-oriented and reliable, and can be used for file transfer, remote login, e-mail, etc., but the transmission speed is slow and requires a lot. Of these two protocols, most people will recommend MQTT protocol, because MQTT is based on TCP and meets the requirements of many people. Now in the era of high-speed information, what everyone wants first is to be fast and make life convenient, even better than TCP.

I also believe that the MQTT agreement will appear in all aspects of our lives in the future. If we make good use of this flexible and convenient protocol, it will certainly be of great help to the development of our information technology, which is also the characteristic of the development of mobile Internet. In fact, MQTT can't be said to be absolutely better than TCP. It can only be said that it has more comprehensive functions and meets the requirements of the development of the times. It is recommended to choose it.

Now MQTT protocol is gradually applied at home and abroad, and I believe it will develop better and better.