Guest User

Untitled

a guest
Jul 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. from ota_update.main.ota_updater import OTAUpdater
  2.  
  3.  
  4. def download_and_install_update_if_available():
  5. ota_updater = OTAUpdater('url-to-your-github-project')
  6. ota_updater.download_and_install_update_if_available('wifi-ssid', 'wifi-password')
  7.  
  8. def start():
  9. # your custom code goes here. Something like this: ...
  10. # from main.x import YourProject
  11. # project = YourProject()
  12. # ...
  13.  
  14. def boot():
  15. download_and_install_update_if_available()
  16. start()
  17.  
  18.  
  19. boot()
Add Comment
Please, Sign In to add comment