Last active
December 27, 2020 04:55
-
-
Save rdehuyss/51b10a6df3f4565040a53059279f48ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ota_update.main.ota_updater import OTAUpdater | |
def download_and_install_update_if_available(): | |
ota_updater = OTAUpdater('url-to-your-github-project') | |
ota_updater.download_and_install_update_if_available('wifi-ssid', 'wifi-password') | |
def start(): | |
# your custom code goes here. Something like this: ... | |
# from main.x import YourProject | |
# project = YourProject() | |
# ... | |
def boot(): | |
download_and_install_update_if_available() | |
start() | |
boot() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment