Feng Lee 11 lat temu
rodzic
commit
721d48857d
1 zmienionych plików z 0 dodań i 19 usunięć
  1. 0 19
      scripts/mosquitto_test

+ 0 - 19
scripts/mosquitto_test

@@ -1,19 +0,0 @@
-#!/bin/sh
-# -*- tab-width:4;indent-tabs-mode:nil -*-
-# ex: ts=4 sw=4 et
-
-# slimple publish
-mosquitto_pub -t xxx/yyy -m hello 
-if [ "$?" == 0 ]; then
-    echo "[Success]: slimple publish"
-else
-    echo "[Failure]: slimple publish"
-fi
-
-# publish will willmsg 
-mosquitto_pub -q 1 -t a/b/c -m hahah -u test -P public --will-topic /will --will-payload willmsg --will-qos 1
-if [ "$?" == 0 ]; then
-    echo "[Success]: publish with willmsg"
-else
-    echo "[Failure]: publish with willmsg"
-fi