I have had that problem and the above fix works. I wonder if my issue is related in some way?
I am trying to run some example code from the documentation (I am an experienced C programmer, h/w, firmware designer, etc.) but either there is something obvious that I’m missing (probable) or there’s a bug here (also possible).
The flash from Particle Build works. Flashing from Particle Dev continues to fail:
The code is the provided examples for the Web Blinky, without modification. Target is the Photon, current firmware is the latest update(0.4.4). Mac OS X Yosemite 10.10.5.
No problem flashing this code from Build. The code appears to compile under Dev, but the error says “build didn’t produce binary”. See attached screenshots. So - is there a file reference missing? Since there are no #includes, I assume all necessary core libraries would already be present during compilation on the server. Any ideas?
Second problem: The html required for the UI renders correctly, of course. When the post action takes place there is an error:
{
"error": "invalid_request",
"error_description": "The access token was not found"
}
The access token is that shown on the account setup page - see the code segment at the bottom. (And yes, I’ll change the numbers for the account later.) The device id is the name of the device, e.g. “corona-one”.
I sure would like to get this launched soon!
Any suggestions?
Screen shots
Project files and directories shown:
Cloud compiler error:
Html code:
<!-- Replace your-device-ID-goes-here with your actual device ID
and replace your-access-token-goes-here with your actual access token-->
<! ----- html error reported:
{
"error": "invalid_request",
"error_description": "The access token was not found"
}
----------------------------------------------------------------->
<!DOCTYPE>
<html>
<body>
<center>
<br>
<br>
<br>
<form action="https://api.particle.io/v1/devices/corona_one/led?access_token=6ebc85e7eae70d1b26e811c6256a45e0c7577788” 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>
</body>
</html>