Commit 67e907e3 authored by Jamalaka's avatar Jamalaka
Browse files

API calls now nonblocking.

parent ce8a61b8
......@@ -15,6 +15,7 @@ sleep 1
echo "Welcome"
echo "0" > /sys/class/gpio/gpio17/value
sleep 3
echo "Aaand again"
echo "1" > /sys/class/gpio/gpio17/value
sleep 1
echo "0" > /sys/class/gpio/gpio17/value
......@@ -8,7 +8,7 @@ echo "Securing Communication to Space Systems..."
echo "out" > /sys/class/gpio/gpio22/direction
sleep 0.5
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 "1" > /sys/class/gpio/gpio22/value
sleep 0.3
......
......@@ -8,7 +8,7 @@ echo "Securing Communication to Space Systems..."
echo "out" > /sys/class/gpio/gpio27/direction
sleep 0.5
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 "1" > /sys/class/gpio/gpio27/value
sleep 0.3
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment