API calls now nonblocking.

This commit is contained in:
Jamalaka 2014-12-09 22:08:32 +01:00
parent ce8a61b8a1
commit 67e907e3a4
3 changed files with 3 additions and 2 deletions

View file

@ -15,6 +15,7 @@ sleep 1
echo "Welcome" echo "Welcome"
echo "0" > /sys/class/gpio/gpio17/value echo "0" > /sys/class/gpio/gpio17/value
sleep 3 sleep 3
echo "Aaand again"
echo "1" > /sys/class/gpio/gpio17/value echo "1" > /sys/class/gpio/gpio17/value
sleep 1 sleep 1
echo "0" > /sys/class/gpio/gpio17/value echo "0" > /sys/class/gpio/gpio17/value

2
lock
View file

@ -8,7 +8,7 @@ echo "Securing Communication to Space Systems..."
echo "out" > /sys/class/gpio/gpio22/direction echo "out" > /sys/class/gpio/gpio22/direction
sleep 0.5 sleep 0.5
echo "Open Communication Channel..." echo "Open Communication Channel..."
curl -s -o /dev/null "hamburg.ccc.de/dooris/status.php?apikey=sesamaenderdich&action=close" curl -s -o /dev/null "hamburg.ccc.de/dooris/status.php?apikey=sesamaenderdich&action=close" &
echo "Locking Space..." echo "Locking Space..."
echo "1" > /sys/class/gpio/gpio22/value echo "1" > /sys/class/gpio/gpio22/value
sleep 0.3 sleep 0.3

2
unlock
View file

@ -8,7 +8,7 @@ echo "Securing Communication to Space Systems..."
echo "out" > /sys/class/gpio/gpio27/direction echo "out" > /sys/class/gpio/gpio27/direction
sleep 0.5 sleep 0.5
echo "Open Communication Channel..." echo "Open Communication Channel..."
curl -s -o /dev/null "hamburg.ccc.de/dooris/status.php?apikey=sesamaenderdich&action=open" curl -s -o /dev/null "hamburg.ccc.de/dooris/status.php?apikey=sesamaenderdich&action=open" &
echo "Unlocking Space..." echo "Unlocking Space..."
echo "1" > /sys/class/gpio/gpio27/value echo "1" > /sys/class/gpio/gpio27/value
sleep 0.3 sleep 0.3