Skip to content

soheilpaper/ota_github_blink

Repository files navigation

This is a try to make the ESP8266 OTA programming by Auto update form GitHub site.

Note 1:

This Project has some errors which asked here:

enter image description here

Note 2:

Based on the timemage answer, I have changed the address of bin and TXT file by finding the download link of those files form the GitHub. And it has been working by changing the blob part of address to raw, so the bin address changed form https://github.com/soheilpaper/ota_github_blink/blob/main/BlinkWithoutDelay_ino_esp8285.bin to https://github.com/soheilpaper/ota_github_blink/raw/main/BlinkWithoutDelay_ino_esp8285.bin And the https://github.com/soheilpaper/ota_github_blink/blob/main/version.txt to https://raw.githubusercontent.com/soheilpaper/ota_github_blink/main/version.txt

And now that error has been fixed as you can see below:

enter image description here

Although I gave some dupt about upgrading the main code by getting this output via serial port:

Device already on latest firmware version

And I would check it after some resting!.

The main instruction:

First you need to do these steps:

1- the file made for the target codes as version.txt file with the Above amount (2.0 here):

const String FirmwareVer={"2.0"};//{"1.8"};

you need to build this file via the Arduino target project at your GitHub repo as you can see below:

#define URL_fw_Version "https://github.com/soheilpaper/ota_github_blink/blob/main/version.txt"

enter image description here

3- you need to create the .bin file of your Arduino project like shown below and upload the bin file to your GitHub project and give its URL_fw_Bin as the target program to be updated automatically to Arduino board:

enter image description here

#define URL_fw_Bin "https://github.com/soheilpaper/ota_github_blink/blob/main/BlinkWithoutDelay.ino.esp8285.bin" //"https://raw.githubusercontent.com/programmer131/otaFiles/master/firmware.bin"

4- Finally upload the main code (GitHub_OTA Codes) to Arduino as you can see below:

enter image description here

Also, you can test it by this video:

ESP8266 Self Update OTA from Github

enter image description here

##Other methods:

There are some other methods described here:

  1. Over-The-Air(OTA) update for Arduino by AglowOTA

enter image description here

  1. Serverless Continuous Integration and OTA update flow for IoT devices using Google Cloud Build and Arduino enter image description here

Thanks for your attention.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages