-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cache hub programs #92
Comments
We have the program start API now with newest pybricksdev |
we also need a mechanism to force downloading the program again in case somehow it is lost or outdated. |
this is possible now that pybricksdev has an API for this implements #92, but in the future we should be smarter about when to automatically assume we can skip the download.
we can locally store for each known hub a hash of the program that we last downloaded. When it is different, force download again. Also if program start fails for some reason, assume wrong or no program is on the hub, and force download. |
if the hashes don't match, force downloading the program this doesn't detect if the hub has new firmware, thus no program, no idea how to somehow detect that. issue #92
since we seem to be able to run with dynamic module without problems, and download speed is not a concern anymore since #92
think we can close this now |
As pybricks/support#284 seems to be theoretically possible or might be possible in the future, we can use the automatic program storage to not have to download everytime.
Maybe have a "first time download" process that automatically restarts the hub so the program is guaranteed to be stored?
The text was updated successfully, but these errors were encountered: