Skip to content

Instantly share code, notes, and snippets.

@cmsunu28
Created May 7, 2015 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmsunu28/6d47fd40cbf059cbe156 to your computer and use it in GitHub Desktop.
Save cmsunu28/6d47fd40cbf059cbe156 to your computer and use it in GitHub Desktop.
Photoresistors Part One: Turning on and off from the internet
<!-- 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