{"action":"created","issue":{"url":"https://api.github.com/repos/squix78/esp8266-ci-ota/issues/2","repository_url":"https://api.github.com/repos/squix78/esp8266-ci-ota","labels_url":"https://api.github.com/repos/squix78/esp8266-ci-ota/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/squix78/esp8266-ci-ota/issues/2/comments","events_url":"https://api.github.com/repos/squix78/esp8266-ci-ota/issues/2/events","html_url":"https://github.com/squix78/esp8266-ci-ota/issues/2","id":160995990,"number":2,"title":"'Verify bin header failed' error","user":{"login":"glynhudson","id":758844,"avatar_url":"https://avatars.githubusercontent.com/u/758844?v=3","gravatar_id":"","url":"https://api.github.com/users/glynhudson","html_url":"https://github.com/glynhudson","followers_url":"https://api.github.com/users/glynhudson/followers","following_url":"https://api.github.com/users/glynhudson/following{/other_user}","gists_url":"https://api.github.com/users/glynhudson/gists{/gist_id}","starred_url":"https://api.github.com/users/glynhudson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glynhudson/subscriptions","organizations_url":"https://api.github.com/users/glynhudson/orgs","repos_url":"https://api.github.com/users/glynhudson/repos","events_url":"https://api.github.com/users/glynhudson/events{/privacy}","received_events_url":"https://api.github.com/users/glynhudson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-18T00:08:37Z","updated_at":"2016-06-27T05:22:45Z","closed_at":null,"body":"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](https://blog.openenergymonitor.org/2016/06/auto-build-continuous-test-firmware/). 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:\r\n\r\n```\r\n    Going to update firmware...\r\n    Checking for Update. Current version: 0.0.1\r\n    HTTP_UPDATE_NO_UPDATES\r\n```\r\n\r\nHowever when I released a point updated release on Github (0.0.1 > 0.0.2), I got the following update from the ESP:\r\n\r\n```\r\n    Going to update firmware...\r\n    Checking for Update. Current version: 0.0.1\r\n    HTTP_UPDATE_FAILD Error (-106): Verify bin header failedGoing to update firmwar. \r\n```\r\n\r\nHave 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.  \r\n\r\n[Here is my ESP code with modified URL for the php scrip](https://github.com/openenergymonitor/EmonESP/blob/ota/src/src.ino#L449). 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](http://lab.megni.co.uk/EmonESP/ota/firmware.php) if you want to test it. "},"comment":{"url":"https://api.github.com/repos/squix78/esp8266-ci-ota/issues/comments/228656486","html_url":"https://github.com/squix78/esp8266-ci-ota/issues/2#issuecomment-228656486","issue_url":"https://api.github.com/repos/squix78/esp8266-ci-ota/issues/2","id":228656486,"user":{"login":"squix78","id":716822,"avatar_url":"https://avatars.githubusercontent.com/u/716822?v=3","gravatar_id":"","url":"https://api.github.com/users/squix78","html_url":"https://github.com/squix78","followers_url":"https://api.github.com/users/squix78/followers","following_url":"https://api.github.com/users/squix78/following{/other_user}","gists_url":"https://api.github.com/users/squix78/gists{/gist_id}","starred_url":"https://api.github.com/users/squix78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squix78/subscriptions","organizations_url":"https://api.github.com/users/squix78/orgs","repos_url":"https://api.github.com/users/squix78/repos","events_url":"https://api.github.com/users/squix78/events{/privacy}","received_events_url":"https://api.github.com/users/squix78/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T05:22:45Z","updated_at":"2016-06-27T05:22:45Z","body":"Sweet! Happy that it works now!\n\nSent from my iPhone\n\n> On 27.06.2016, at 00:32, Glyn Hudson <notifications@github.com> wrote:\n> \n> Doh indeed! Thanks so much, sometimes the simplest things cause so much pain! Now working beautifully 👍\n> \n> Checking for Update. Current version: 0.0.3#\n> \n>  ets Jan  8 2013,rst cause:2, boot mode:(3,6)\n> \n> load 0x4010f000, len 1264, room 16 \n> tail 0\n> chksum 0x0f\n> csum 0x0f\n> @cp:0\n>      ld\n> \n> emonESP Startup\n> BUILD_TAG: 0.0.4#\n> Connecting as Wifi Client to xxx epass:xxxx\n> Connected, IP Address: 192.168.0.75\n> HTTP server started\n> Going to update firmware...\n> Checking for Update. Current version: 0.0.4#\n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub, or mute the thread.\n> \n"}}
{"actor":{"display_login":"squix78"}}