Skip to content

Conversation

@shahpiyushv
Copy link
Contributor

Checklist

  • Component contains License
  • Component contains README.md
  • Component contains idf_component.yml file with url field defined
  • Component was added to upload job
  • Component was added to build job
  • Optional: Component contains unit tests
  • CI passing

Change description

  • Add CONFIG_NETWORK_PROV_WIFI_SAVE_CREDENTIALS_ON_SUCCESS option (disabled by default)
  • When enabled, credentials are stored in RAM initially and saved to flash only after IP_EVENT_STA_GOT_IP
  • Prevents invalid credentials from persisting in flash if device reboots before connection succeeds
  • Maintains backward compatibility with legacy behavior (save to flash immediately) when option is disabled
  • Bump version to 1.2.3

… reset

Reset connection_attempts_completed to 0 when resetting WiFi state machine
or applying new credentials to ensure full wifi_conn_attempts retries.
…ful connection

- Add CONFIG_NETWORK_PROV_WIFI_SAVE_CREDENTIALS_ON_SUCCESS option (disabled by default)
- When enabled, credentials are stored in RAM initially and saved to flash only after IP_EVENT_STA_GOT_IP
- Prevents invalid credentials from persisting in flash if device reboots before connection succeeds
- Maintains backward compatibility with legacy behavior (save to flash immediately) when option is disabled
- Bump version to 1.2.3
@github-actions github-actions bot changed the title Draft: feat: Add option to save WiFi credentials to flash only after successful connection Draft: feat: Add option to save WiFi credentials to flash only after successful connection (IEC-463) Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants