Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A new approach for erasing WiFi Settings #8828
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
A new approach for erasing WiFi Settings #8828
Changes from 6 commits
f5d7d4a
1a03a41
d061a3c
8375000
b1e772c
dd78bc0
9ccd11c
feb8a99
eb7aa17
5f7adcf
c7a3ed8
cd5a852
892e6a2
c952ffc
f8a8251
40fba0a
f3a492e
0e1059d
721e6d3
696b96b
ef0c1e2
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
At failure, there are no good choices.
I picked 3 to retry forever.
If they power cycle, the download is aborted.
Update:
I think an EXT_RST would result in the flash update completing. RTC should be preserved.
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.
Why a separate condition & callback though? We can retrieve error id
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.
I don't understand your reference. I am using the existing error callback with a new error number to identify the situation.
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.
(review UI sent a draft :/)
Why even mention it? Since we want this to be done, probably unroll is a better option than leave things in an indeterminate state?
Another part - it is the only state that continues execution. We still have eboot part like you said, even after ::end()ing the instance (suppose that from user pov it is an option to recover).
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.
Arduino/libraries/ArduinoOTA/ArduinoOTA.cpp
Lines 328 to 346 in 0e1059d
When enabling erase WiFi settings, the user does so by selecting the fail option ignore or abort. Does that satisfy your concerns?