Working example for the ESP_OTA_GitHub library.
This repository contains the sketches and binaries set-up with the correct releases to fully demonstrate the ESP_OTA_GitHub library.
The binaries attached are compiled for a Wemos D1 Mini with the memory map set to "4MB (FS:1MB, OTA:~1019KB)".
- Download or clone the master branch.
- Add your WiFi credentials to the sketch.
- Ensure the memory map os set to "4MB (FS:1MB, OTA:~1019KB)" ("Tools" -> "Flash Size" in the Arduino IDE.
- Use "Tools" -> "ESP8266 Sketch Data Upload" to add the certificate file in the data directory of the sketch to your board.
- Attach the D1 Mini to a Serial Monitor at 115200 baud.
- Compile and upload the code.
- When the board resets you will see it print to the Serial monitor that it is version 0.0.0.
- Keep watch in the Serial Monitor as the device updates.
- Verify on reboot that the device now shows 0.1.0 as the current version number.
The sketch provided here is essentally the same as the basic example for the ESP_OTA_GitHub library. You may use it as a starting point for your project but please do be sure to update the GitHub user, repository name, expected binary file name and version to match your own repository.