GITUpdater is a 8266 library to add automatic updater to your project. GITUpdater allows you to check the version of your project available on GITHub and to carry out the update if you wish.
- Add automatic version file builder to your project
- Copy library 'script' folder in your root platform.io project folder
- add folowing line to your platformio.ini file :
extra_scripts = pre:script\buildscript_versioning.py post:script\copy_bin.py
- Add library to your project
-
Add library :
add this line to your platformio.ini file lib_deps = https://github.com/Nimo11/GITUpdater.git#master or copy src folder content to your project folder
-
Add reference
#include "Updater.h"
#include "version.h"
GITUpdater _updater;
-
Add this line in your setup code
_updater.SetCurrentVersion(BUILD_NUMBER);
_updater.SetGITProjectURL("your project url"); for example your project url could be https://github.com/Nimo11/RFIDReader/master
Check on line version and compare to current
Return true if on line is newer
Check on line version and compare to current
Return true if on line is newer
Return last on line version readed
set current build project version value
Return current project value
Set GITHUB project URL. For example https://github.com/Nimo11/GITUpdater
Return GITHUB project URL