summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-10-10 03:37:10 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-10-10 03:37:10 +0300
commite956b98975bf414f247934e73515f222d4334495 (patch)
tree4fa2d40a291a5cce38f38e4ed2de3dca399c7342
parent72e33e193c900f8357c95c73f328ba46dce5f7cf (diff)
add mosquitto-cli-pub-sub.txtHEADmaster
-rw-r--r--mosquitto-cli-pub-sub.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/mosquitto-cli-pub-sub.txt b/mosquitto-cli-pub-sub.txt
new file mode 100644
index 0000000..61a4d53
--- /dev/null
+++ b/mosquitto-cli-pub-sub.txt
@@ -0,0 +1,7 @@
+pub:
+ echo -ne "\x68\x65\x6c\x6c\x6f\x77\x6f\x72\x6c\x64" | mosquitto_pub -h mqtt.solarmon.ru -p 8883 --cafile ~/dev/homekit/misc/mqtt_ca.crt -u user -P password -t "hk/my/topic" --will-qos 1 -s
+
+sub:
+ mosquitto_sub -h mqtt.solarmon.ru -p 8883 --cafile ~/dev/homekit/misc/mqtt_ca.crt -u user -P password -t "hk/my/topic/#" -v -F %X
+
+also see man mosquitto_sub(1) for -F (formats)