Tag: Polling an MQTT message through a two-way synchronous device Server communication protocol
We know that the device used by the user is called the client, and the port that is provided to the user information is called the server side. Two ports can be interacted with through a variety of communication protocols, such as HTTP (synchronous) or message-based asynchronous.
The MQTT protocol has the advantage that HTTP is a synchronous stateless protocol that does not support push, the client pushes through a mock push, and repeated polling requires additional resources:
MQTT is a message-delivery-based protocol:
1. Can maintain a long connection between the device and the server, avoid repeated polling, reduce resource consumption, so more power-saving.
2.MQTT can establish a two-way connection between the device and the server so that push can be used.
Introduction to the "Essays" Mqtt