remove messages in mqtt by topic
This commit is contained in:
3
mqtt/remove_retained_topic.sh
Executable file
3
mqtt/remove_retained_topic.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
echo "cleaning " $1 " :: usage: cleanmqtt <host> <topic>"
|
||||
mosquitto_sub -h $1 -t "${2}/#" -v | while read line; do mosquitto_pub -h $1 -t "${line% *}" -r -n; done
|
||||
Reference in New Issue
Block a user