MQTT/en: различия между версиями

Новая страница: «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…»
(Новая страница: «To delete topics, you can use the command ''mqtt-delete-retained''. Example of use: <syntaxhighlight lang="bash"> root@wirenboard:~# mqtt-delete-retained '/device…»)
(Новая страница: «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…»)
Строка 148: Строка 148:
- removes all topics starting with '/devices/noolite_tx_1234/'
- removes all topics starting with '/devices/noolite_tx_1234/'


Для удаления топиков "по маске", можно циклично вызывать runShellCommand из правил. Таким образом, задача сводится к задаче работы со строками в js.
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 in js.
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
var deviceName = ['name1',.., 'nameN'];
var deviceName = ['name1',.., 'nameN'];
12 063

правки