-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
[REDO] Update espota.py #8797
[REDO] Update espota.py #8797
Conversation
Changes documented in comment section of code.
@SuGlider please try this on Windows this example should do |
Tested on MacOS. Worked well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Works fine on Linux (OpenSUSE Leap 15.5)
@SuGlider could you please test on Windows? |
Test done. All fine! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All Fine! Tested with Windows 11 / CMD.
This PR is a redo of #8239
Replaced the deprecated optparse module with argparse.
Adjusted the code style to conform to PEP 8 guidelines.
Used with statement for file handling to ensure proper resource cleanup.
Incorporated exception handling to catch and handle potential errors.
Made variable names more descriptive for better readability.
Introduced constants for better code maintainability.