axcap / Esp-GitHub-OTA

Arduino OTA updater that uses Github releases as storage
13 stars 8 forks source link

What is being used from the release #16

Open bfokin opened 7 months ago

bfokin commented 7 months ago

I was curious, what from the github release is being collected by the esp32 device to update itself? Is it a firmware.bin file?

How is the firmware.bin and filesystem.bin placed in the release?

zekageri commented 7 months ago

In github desktop you can create releases by commit tags and you can upload attachments. I made this way

Create release v1.0.0, upload firmware.bin and littlefs.bin with the release -> esp polls api.github.com/user/repo/releases/latest -> esp parses json response, looks for attachment url in the json -> calls update and updatespiffs with the urls

axcap commented 7 months ago

You are right, firmware.bin is the compiled OTA firmware.

I´m using Github Actions to automatically create new release. All you need to do is to commit a git tag to the repo (as described in step 8 of the README.md)