https://github.com/fbiego/esp32-firmware-update
Update ESP32 firmware over WiFi from a web server
https://github.com/fbiego/esp32-firmware-update
arduino automation esp32 firmware firmware-updater github wifi
Last synced: about 1 month ago
JSON representation
Update ESP32 firmware over WiFi from a web server
- Host: GitHub
- URL: https://github.com/fbiego/esp32-firmware-update
- Owner: fbiego
- Created: 2021-11-03T20:14:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-04T08:35:33.000Z (over 3 years ago)
- Last Synced: 2025-03-25T09:47:46.396Z (about 2 months ago)
- Topics: arduino, automation, esp32, firmware, firmware-updater, github, wifi
- Language: C++
- Homepage:
- Size: 1.47 MB
- Stars: 27
- Watchers: 1
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# esp32-firmware-update
Update ESP32 firmware over WiFi from Github[](https://github.com/fbiego/esp32-firmware-update/actions/workflows/main.yml)
This includes a python script which generates the update json file based on the firmware version stated in the Arduino sketch.
The script also renames the generated binary file from the Arduino IDE.- update your code
- export compiled binary
- commit & push to github
- the rest is history## Setup
If you clone this repository, make the following changes[`workflow`](./.github/workflows/main.yml)
```
git config --local user.email "[email protected]"
git config --local user.name "username"
```[`sketch`](./esp32-firmware-update.ino)
```
String baseUrl = "https://raw.githubusercontent.com/{your github username}/esp32-firmware-update/main/";/* your wifi credentials */
char * WIFI_SSID = "wifi name";
char * WIFI_PASS = "wifi password";
```## Releasing Updates
- Clone the repo and make changes to the code using Arduino IDE
- Upload the sketch to the ESP32 if this is the first time
- Increment the `currentVersion` in the sketch
- Export compiled binary (Ctrl+Alt+S) using Arduino IDE
- Commit and push the changes to Github
- The workflow will run the script to generate json file and rename the bin file
- Once the ESP32 finds higher `versionCode` in the json file it will download and update the firmware