Translations:MQTT/136/en

Материал из Wiren Board
Версия от 14:55, 10 июня 2019; RomanKulibaba (обсуждение | вклад) (Новая страница: «== The principle of operation of a message queue == File:MQTT.png | thumb | 600px | Drivers of internal functions, external devices, web interface, rules system…»)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)

The principle of operation of a message queue

Drivers of internal functions, external devices, web interface, rules system work via the MQTT message queue

The MQTT message system is based on the following principle:

  • there is a hierarchical system of "topics" (like on the Internet forums)
  • clients (in the case of Wiren Board - device drivers and web interface) can write messages and read from these topics
  • to monitor the changes of the desired topic (for example, temperature on the sensor), the client can "subscribe" to it - then it will receive all messages in this topic.

For a full description of topics and subscriptions, see http://mosquitto.org/man/mqtt-7.html.http://mosquitto.org/man/mqtt-7.html.