Track tasks and feature requests
Join 40 million developers who use GitHub issues to help identify, assign, and keep track of the features and bug fixes your projects need.
Sign up for free See pricing for teams and enterprises'Verify bin header failed' error #2
Comments
This comment has been minimized.
This comment has been minimized.
Hi Glyn. I think I resolved your issue and I hope you're not gonna hate yourself for it: your php script starts with an empty line, actually with a new line character: |
This comment has been minimized.
This comment has been minimized.
Doh indeed! Thanks so much, sometimes the simplest things cause so much pain! Now working beautifully
|
This comment has been minimized.
This comment has been minimized.
Sweet! Happy that it works now! Sent from my iPhone
|
Hi Dan, as you have probably have gathered I have been working towards re-creating your awesome continuous delivery project, and learning lots in the process. I think I'm almost there. I've got Travis and platformio setup to auto generating the compiled .bin on a release, see blog post. Today I setup the server php script and the ESP code. At first it seemed to work when the build number of the firmware matched the build number on the GitHub release I saw the following output from the ESP:
However when I released a point updated release on Github (0.0.1 > 0.0.2), I got the following update from the ESP:
Have you any idea what could be causing the
bin header failed
error? The PHP script is obviously working to serve up the updated .bin, however the ESP http updater seem to be throwing an error.Here is my ESP code with modified URL for the php scrip. The server code is unchanged ([appart from the repo URL])(https://github.com/openenergymonitor/EmonESP/blob/ota/ota/firmware.php#L3). My php script is served from here if you want to test it.