module documentation
Update - Check for and install updates.
| Function | run |
Run the app and handle the update state machine. |
| Function | start |
Start the app and check for updates. |
| Function | stop |
Stop the app and reset the update state. |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Function | __check |
Handle the update check response. |
| Function | __check |
Handle the firmware download response. |
| Function | __check |
Start the download of the update. |
| Function | __check |
Check whether an update is available. |
| Function | __check |
Start the check for update request. |
| Function | __draw |
Draw the download complete screen. |
| Function | __draw |
Draw an error screen. |
| Function | __draw |
Draw the no update available screen. |
| Function | __draw |
Draw the update available screen. |
| Function | __loading |
Start the loading animation. |
| Function | __reset |
Reset the update state |
| Variable | _board |
Undocumented |
| Variable | _current |
Undocumented |
| Variable | _download |
Undocumented |
| Variable | _download |
Undocumented |
| Variable | _download |
Undocumented |
| Variable | _download |
Undocumented |
| Variable | _download |
Undocumented |
| Variable | _http |
Undocumented |
| Variable | _loading |
Undocumented |
| Variable | _update |
Undocumented |
| Variable | _view |
Undocumented |
Run the app and handle the update state machine.
| Parameters | |
viewViewManager | The view manager instance for display and storage access. |
Start the app and check for updates.
| Parameters | |
viewViewManager | The view manager instance for display and storage access. |
| Returns | |
bool | True if the update check started, False on failure. |
Stop the app and reset the update state.
| Parameters | |
viewViewManager | The view manager instance for display and storage access. |
Handle the update check response.
| Parameters | |
response:HTTPResponse | The HTTP response. |
state:int | The request state. |
error:str or None | The request error, if any. |
Handle the firmware download response.
| Parameters | |
response:HTTPResponse | The HTTP response. |
state:int | The request state. |
error:str or None | The request error, if any. |
Check whether an update is available.
Must call __check_for_update_start first.
| Parameters | |
httpHTTP | The HTTP context for the request. |
| Returns | |
bool | True if an update is available, False otherwise. |
Start the check for update request.
| Parameters | |
httpHTTP | The HTTP context for the request. |
viewViewManager | The view manager instance for display and storage access. |
| Returns | |
bool | True if the request started, False otherwise. |
Draw the download complete screen.
| Parameters | |
viewViewManager | The view manager instance for display and storage access. |
Draw an error screen.
| Parameters | |
viewViewManager | The view manager instance for display and storage access. |
message:str | The error message to show. |
Draw the no update available screen.
| Parameters | |
viewViewManager | The view manager instance for display and storage access. |
Draw the update available screen.
| Parameters | |
viewViewManager | The view manager instance for display and storage access. |
Start the loading animation.
| Parameters | |
viewViewManager | The view manager instance for display and storage access. |
text:str | The loading text. Defaults to "Checking...". |