12 063
правки
(Новая страница: «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/' | ||
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']; |
правки