Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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()
Add Comment
Please, Sign In to add comment