MQTT Communication – Establishing an MQTT Connection
MQTT is an application layer protocol. After the client and server establish a network connection (usually TCP/IP), the client sends a CONNECT message to the server to request the establishment of an MQTT connection, and the server replies with a CONNACK message to accept or reject the connection. The connection process is as follows: __CONNECT … Read more