Created
May 7, 2015 16:48
-
-
Save cmsunu28/6d47fd40cbf059cbe156 to your computer and use it in GitHub Desktop.
Photoresistors Part One: Turning on and off from the internet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Replace your-device-ID-goes-here with your actual device ID | |
and replace your-access-token-goes-here with your actual access token--> | |
<center> | |
<br> | |
<br> | |
<br> | |
<form action="https://api.spark.io/v1/devices/your-device-ID-goes-here/led?access_token=your-access-token-goes-here" method="POST"> | |
Tell your device what to do!<br> | |
<br> | |
<input type="radio" name="args" value="on">Turn the LED on. | |
<br> | |
<input type="radio" name="args" value="off">Turn the LED off. | |
<br> | |
<br> | |
<input type="submit" value="Do it!"> | |
</form> | |
</center> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment