Skip to content

csgregg/csg-esp8266-rota

Repository files navigation

MIT license Status

ESP8266 Remote OTA Update using PlatformIO, Github and Travis

A basic example of how to set up Remote Over-The-Air firmware updates for ESP8266 using Travis Continuous Integration.

Releases tagged in GitHub matching x.x.x release tags will be built by Travis, and the binary stored back as an asset in the release in GitHub.

Since GitHub uses SSL and it's not supported in the ESP8266, the HTTPUpdate library in the ESP8266 code calls a redirect script to deliver the binary for the firmware update from the release asset.

Setup

PlatformIO

Add PlatformIO extension to VSCode. Install Git.

Github

  • Create repository in GitHub
  • Make public
  • Skip step to import an existing repository
  • Use command line to add remote to local Git repo
  • Add README.md and LICENSE as necessary

Useful videos - https://www.youtube.com/watch?v=I7WfxhF2wEg

Travis-CI

  • Link Travis-CI.org account to GitHub
  • Install Ruby and Travis locally
  • Seed the encrypted OAuth token in the travis.yml file using travis setup releases from the local repo folder
  • Update the rest of the YML file

Notes

  • Ensure Travis EmbAjax library is right version

Useful links -

Host Redirect

Host the redirect script somewhere visible - csg-esp8266-rota.php

PC Setup VSCode GitHub Desktop Git Platformio

Hosting Setup GoDaddy Basic php hosting

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published