Learning the MQTT protocol and using an MQTT node
Now that the sensor data has been successfully acquired, let's send that data to the server.
We usually select a protocol suitable for the content being transmitted; for example, when exchanging mail, we use SMTP. Currently, HTTP is used as a general-purpose protocol on the internet.
For example, HTTP is used for various communications on the internet, such as displaying web pages in a browser and exchanging data between servers. HTTP is a protocol created for exchanging content on the internet. In many cases, network devices such as routers and firewalls on the internet are set to allow HTTP communication to be used for various purposes, and HTTP is compatible with the internet.
In the IoT world, MQTT is often used as a general protocol instead of HTTP. This means that the MQTT protocol is the standard of the IoT world, just as the HTTP protocol is the standard of the web world.
MQTT (short for MQ Telemetry Transport...