Skip to content

Instantly share code, notes, and snippets.

@liangsteve
Last active March 31, 2016 05:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liangsteve/bb7468fb9e97060f4676d3e544c11a77 to your computer and use it in GitHub Desktop.
Save liangsteve/bb7468fb9e97060f4676d3e544c11a77 to your computer and use it in GitHub Desktop.
let COUNT=75
while [ $COUNT -gt 0 ]; do
mosquitto_pub -t "house" -h iot.eclipse.org -m "$COUNT"
let COUNT=(COUNT-1)
done
mosquitto_sub -t "house" -h iot.eclipse.org
mosquitto_pub -t "house" -h iot.eclipse.org -m "hello"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment