?php
$output = shell_exec('gpio mode '.$_GET['pin'].' out');
$output = shell_exec('gpio write '.$_GET['pin'].' '.$_GET['status']);
echo $_GET['status'];
$output = shell_exec('gpio read 1');
echo "Relay 1:".$output."
";
$output = shell_exec('gpio read 2');
echo "Relay 2:".$output."
";
$output = shell_exec('gpio read 3');
echo "Relay 3:".$output."
";
$output = shell_exec('gpio read 4');
echo "Relay 4:".$output."
";
$output = shell_exec('gpio read 5');
echo "Relay 5:".$output."
";
$output = shell_exec('gpio read 6');
echo "Relay 6:".$output."
";
$output = shell_exec('gpio read 7');
echo "Relay 7:".$output."
";
$output = shell_exec('gpio read 0');
echo "Relay 8:".$output."
";
?>
android upload file to raspberry server
https://xjaphx.wordpress.com/2011/06/26/create-and-use-emulated-sd-card/
https://dl-ssl.google.com/android/eclipse/
http://www.java-samples.com/showtutorial.php?tutorialid=1523
https://xjaphx.wordpress.com/2011/06/26/create-and-use-emulated-sd-card/
http://hoodaandroid.blogspot.fr/2012/07/reading-and-writing-data-to-sdcard.html