I followed the instructions on the tutorials page for the web-connected LED. After making a html file, I am stuck. I get an error {“error”:“invalid_token”,“error_description”:“The access token provided is invalid.”}. I believe the issue is how I am copy pasting the device ID and access token. How does the information specifically get entered? I have it as…
<!1e002100xxxxxxx c7acb5xxxxxxxxxx>
What is the specific format that needs to be replaced between the ? Do the ‘-’ remain?
Could you show us the exact code you’re using? Copy & paste it here (and change some characters of you accesstoken).
Should look something like this:
<!-- 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/1234567890987654321/led?access_token=0987654321234567890" method="POST">
Tell your device what to do!<br>
<br>
<input type="radio" name="arg" value="on">Turn the LED on.
<br>
<input type="radio" name="arg" value="off">Turn the LED off.
<br>
<br>
<input type="submit" value="Do it!">
</form>
</center>
</body>
</html>