Add code to control lightning from browser.

This commit is contained in:
Molly Nicholas 2015-12-13 09:46:15 -08:00
parent be1a659413
commit fde662bbee
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
<!-- Replace your-device-ID-goes-here with your actual device ID
and replace your-access-token-goes-here with your actual access token-->
<!DOCTYPE>
<html>
<body>
<center>
<br>
<br>
<br>
<form action="https://api.particle.io/v1/devices/400021000747343337373738/lightning?access_token=5b3dd71af422f403693b305955cd765de6680700" method="POST">
Tell your device what to do!<br>
<br>
<input type="radio" name="args" value="f">Trigger lightning.
<br>
<input type="radio" name="args" value="g">Trigger nothing.
<br>
<br>
<input type="submit" value="Do it!">
</form>
</center>
</body>
</html>