Advertisement
tuxmartin

MQTT 2 ;-)

Sep 9th, 2015
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. for i in {1..1000}
  4. do
  5.     CISLO=$[ 1 + $[ RANDOM % 63 ]]
  6.    
  7.     echo $CISLO
  8.    
  9.     sleep 0.5
  10.    
  11.    mosquitto_pub -h 192.168.0.30 -t led/state -m $CISLO
  12. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement