Commit 67503bd2 authored by 吴文龙's avatar 吴文龙

fix

parent b39a6cdc
#!/bin/sh
echo $@ >> /tmp/all_arguments.txt
ip_adr=$(echo $@|awk '{print $3}')
if mosquitto_pub -h $ip_adr -p 31883 -u 123456 -t v1/devices/me/attributes -f test-mqtt.json -q 1 -d; then
if mosquitto_pub -h $ip_adr -p 31883 -u 123456 -t v1/devices/me/attributes -f /usr/local/bin/test-mqtt.json -q 1 -d; then
exit 0
else
exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment