История
4 июля 2023
2 мая 2022
11 июня 2019
Новая страница: «'''Solution:''' # Register on http://cloudmqtt.com/ # Go to your account on http://cloudmqtt.com/ to view settings: server, port, username, password. # Go to the…»
−346
Новая страница: «'''Task''': set up forwarding of all MQTT messages to the popular free cloud MQTT broker http://cloudmqtt.com/ and back.»
−93
Новая страница: «=== Setting up the MQTT bridge === thumb | 400px | Settings of the MQTT Cloud broker MQTT bridge is a feature of the MQTT broker that all…»
−244
Новая страница: «=== Viewing MQTT channels in the web interface === MQTT-names of devices, their controls and the latest values can be found in the Settings section of the web int…»
−125
Новая страница: «In order to send MQTT messages, there are libraries for many programming languages. Examples: * Python - [https://github.com/contactless/mqtt-tools] * C - [http:/…»
−93
Новая страница: «If you are developing your own SOFTWARE for the Wiren Board, it is best to communicate with its hardware resources through a message queue - your program sends a…»
−244
Новая страница: «=== Working with queue from external programs ===»
−28
Новая страница: «To remove the topics by the "mask", it is possible to call runShellCommand of the rules cyclically. Thus, the task is reduced to the task of working with strings…»
−84
Новая страница: «To delete topics, you can use the command ''mqtt-delete-retained''. Example of use: <syntaxhighlight lang="bash"> root@wirenboard:~# mqtt-delete-retained '/device…»
−112
Новая страница: «Unnecessary retained messages may remain in the MQTT system after unused drivers are removed or any devices are disconnected. This causes nonexistent devices to a…»
−225
Новая страница: «==== Clearing the message queue ====»
−22
Новая страница: «Full description of topics and subscriptions:[http://mosquitto.org/man/mqtt-7.html http://mosquitto.org/man/mqtt-7.html].»
−35
Новая страница: «You can subscribe not just for one topic, but for a group of topics by metasymbol. In MQTT we use two special characters: '''#''' and '''+'''. The special charact…»
−376
Новая страница: «You can also subscribe to messages from the Linux console using the mosquitto_sub utility (for a full description of the utility, see [http://mosquitto.org/man/mo…»
−209
Новая страница: «Customers who want to monitor the temperature value, "subscribe" to this topic, and they receive new messages - changing temperature values. One such client is th…»
−178
Новая страница: «==== Tracking the status of the device / subscribe to topic ====»
−44
Новая страница: « To control the device (change the channel value), you need to send a message to the topic "/devices/<device-id>/controls/<control-id>/on" This is done using t…»
−285
Новая страница: «==== Managing devices from the command line====»
−45
Новая страница: «==Working with message queue== The program (daemon) responsible for sending messages from one client to another is called a message broker. Wiren Board uses [ht…»
−257
Новая страница: «For example, if we now click on the relay button in the web interface (switch its state), we will receive new messages: <pre> /devices/wb-mrm2_130/controls/Relay…»
−197
Новая страница: «The relay module is controlled by the wb-mqtt-serial driver driver, which has a corresponding topic-"channel"("control") Relay 1. It has a value - 0 (relay off),…»
−543
Нет описания правки
+86
10 июня 2019
Новая страница: «Let's subscribe to the status messages of the first relay connected via RS-485 of the WB-MRM2 relay module: <syntaxhighlight lang="bash"> root@wirenboard:~# mosqu…»
−266
Новая страница: «=== Message structure commands to change the state of the devices ===»
−36
Новая страница: «You can also subscribe to messages from the Linux console using the '''mosquitto_sub''' utility (see below for a complete description of Queuing from the command…»
−193
Новая страница: «Clients which need to monitor the temperature value, "subscribe" to this topic, and they receive new messages - changing temperature values. One such client is th…»
−178
Новая страница: «=== The example of subscription ===»
−2
Новая страница: «If you want to write a device driver yourself, and you want it to appear on the Devices tab and be able to use it in rules, you need to follow the same topic stru…»
−209
Новая страница: «The name of the topic consists of nested "subtopics": *''/devices'' - root topic for all "devices" - as built-in functions of Wiren Board (digital, ADC, ...) and…»
−508
Новая страница: «=== The structure of the message device status === Here is an example message from the 1-Wire temperature sensor driver from the example above: <pre> /devices/wb-…»
−116
Новая страница: «===Message queue clients=== *internal hardware function drivers *external connected device drivers *web interface *rules engine *(if any) user's own programs»
−193
Новая страница: «Полный список MQTT-топиков можно увидеть на странице ''Settings'' веб-интерфейса в разделе ''MQTT Ch…»
+209
Новая страница: «The logic of the organization of topics corresponding to different devices and their parameters in the Wiren Board follows certain rules - the so-called agreement…»
−110
Новая страница: «=== Displaying devices in the queue structure===»
−42
Новая страница: «== The principle of operation of a message queue == File:MQTT.png | thumb | 600px | Drivers of internal functions, external devices, web interface, rules system…»
−428
Новая страница: «== 1 Examples of work via the MQTT queue == ===Getting the value from the temperature sensor and displaying it in the web interface=== File:Web-devices-1-wire.p…»
−1486
Новая страница: «If a button is pressed in the web interface, the web interface sends a message to the MQTT queue, the device driver receives it and sends a command to the device.»
−142
Новая страница: «Drivers responsible for the hardware capabilities of the controller (digital inputs, ADC, transistor outputs, ...) and functions of external connected devices (fo…»
−280
Новая страница: «'''MQTT''' - is a message queue used in the Wiren Board software. [http://en.wikipedia.org/wiki/M…»
−98
Новая страница: «MQTT»
+22 548