File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ dot_plugin_if_exists "misc"
106106dot_plugin_if_exists "minikube"
107107dot_plugin_if_exists "music" # Requires: homelab
108108dot_plugin_if_exists "mv"
109+ dot_plugin_if_exists "mqtt"
109110dot_plugin_if_exists "navi"
110111dot_plugin_if_exists "network"
111112#dot_plugin_if_exists "nvm" # Node.js environment manager FIXME: remove plugin
Original file line number Diff line number Diff line change 1+ # Usage: mqtt_send_anon_message "localhost" "1883" "mytopic/" "my message"
2+ alias mqtt_send_anon_message=" f_mqtt_send_anonymous_message"
3+
4+ # Usage: tmqtt "mqtt://test.mosquitto.org" "hello/world"
5+ alias tmqtt=' mqttui --broker '
Original file line number Diff line number Diff line change 1+ function f_mqtt_send_anonymous_message() {
2+ local host=" $1 "
3+ local port=" $2 "
4+ local topic=" $3 "
5+ local message=" $4 "
6+
7+ mqttx pub -t " $topic " -q 1 -h " $host " -p " $port " -m " $message "
8+ }
You can’t perform that action at this time.
0 commit comments