gadgets-OSC/Loth/sender.sh

27 lines
336 B
Bash
Raw Normal View History

2020-10-31 08:37:05 +11:00
#!/bin/bash
2020-10-31 11:08:23 +11:00
#
# c'est juste du code d'exemple
#
R_IP="10.20.31.170"
R_PORT="1111"
2020-10-31 08:37:05 +11:00
DEVICE=42
oscpath=$(printf "/loth/truc/%d" $DEVICE)
oscsend $R_IP $R_PORT $oscpath s "==========="
for foo in $(seq 20 7 80)
do
echo " " $foo
2020-10-31 11:08:23 +11:00
message=$(printf " 0x%02x" $foo)
2020-10-31 08:37:05 +11:00
oscsend $R_IP $R_PORT $oscpath s "$message"
sleep 1
done