gadgets-OSC/Loth/sender.sh

27 lines
336 B
Bash
Raw Permalink Normal View History

2020-10-30 22:37:05 +01:00
#!/bin/bash
2020-10-31 01:08:23 +01:00
#
# c'est juste du code d'exemple
#
R_IP="10.20.31.170"
R_PORT="1111"
2020-10-30 22:37:05 +01: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 01:08:23 +01:00
message=$(printf " 0x%02x" $foo)
2020-10-30 22:37:05 +01:00
oscsend $R_IP $R_PORT $oscpath s "$message"
sleep 1
done