Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- CISLO=0
- for i in {1..1000}
- do
- if [ "$CISLO" == 63 ]; then
- set $CISLO = "0"
- fi
- ((CISLO++))
- echo $CISLO
- sleep 0.5
- mosquitto_pub -h 192.168.0.30 -t led/state -m $CISLO
- done
Advertisement
Add Comment
Please, Sign In to add comment