tuxmartin

MQTT ;-)

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