-
Notifications
You must be signed in to change notification settings - Fork 0
Add example for erasing the network configuration via library api #20
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR adds a new example sketch demonstrating how to programmatically delete/reset network configuration using the NetworkConfigurator library API. The example provides a simple utility that wipes stored network configuration without using the reconfiguration procedure.
Key Changes
- Added a new DeleteConfiguration.ino example sketch with basic network configuration reset functionality
- Updated CI workflow to include the new example in compilation testing
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
examples/utility/DeleteConfiguration/DeleteConfiguration.ino | New example sketch that demonstrates network configuration deletion using the NetworkConfigurator library |
.github/workflows/compile-examples.yml | Added the new example to the CI compilation workflow |
void setup() { | ||
/* Initialize serial debug port and wait up to 5 seconds for port to open */ | ||
Serial.begin(9600); | ||
for(unsigned long const serialBeginTime = millis(); !Serial && (millis() - serialBeginTime <= 5000); ) { } |
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.
The empty for loop body should include a comment or explicit empty block to clarify the intentional waiting behavior, e.g., { /* Wait for Serial */ }
for(unsigned long const serialBeginTime = millis(); !Serial && (millis() - serialBeginTime <= 5000); ) { } | |
for(unsigned long const serialBeginTime = millis(); !Serial && (millis() - serialBeginTime <= 5000); ) { /* Wait for Serial */ } |
Copilot uses AI. Check for mistakes.
Memory usage change @ 8440f09
Click for full report table
Click for full report CSV
|
No description provided.