Skip to content

Add device network configuration #175

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

Merged
merged 4 commits into from
Jun 19, 2025
Merged

Conversation

fabik111
Copy link
Contributor

Motivation

After the release of the NetworkConfigurator library it's possible to store the network configuration of the device locally on it.
A client is needed for enabling the users to use this new feature.

Change description

  • Add support to the ArduinoBoardConfiguration Protocol
  • Add new configure sub command of device menù for network configuration
  • Refactorize the create command for provisioning

Additional Notes

Reviewer checklist

  • PR address a single concern.
  • PR title and description are properly filled.
  • Changes will be merged in main.
  • Changes are covered by tests.
  • Logging is meaningful in case of troubleshooting.
  • History is clean, commit messages are meaningful (see CONTRIBUTING.md) and are well formatted.

@fabik111 fabik111 force-pushed the add-config-device branch from 9e01568 to e055463 Compare June 11, 2025 12:53
}

if res != nil {
if res.Type() == cborcoders.WiFiNetworksType {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused by this check. Why we only check for WiFi network type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because in this step the program is waiting for the list of wifi networks from the board. According to the protocol this step is mandatory.
For boards not supporting the WiFi an empty list must be sent by the board anyway.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Please add a comment on the code to explain this

@mirkokurt mirkokurt self-requested a review June 18, 2025 10:31
@mirkokurt mirkokurt merged commit 83a780d into arduino:main Jun 19, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants