Skip to content

Rework WiFi states and better handle restart #673

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

Open
wants to merge 11 commits into
base: release_candidate
Choose a base branch
from

Conversation

LeeLeahy2
Copy link
Collaborator

This change includes:

  • HTTP_Client: Attempt to display the TLS error
  • MQTT_Client: Attempt to display the TLS error
  • WiFi: Add channel get and set routines
  • WiFi: Fix wifiStationEnabled reasons
  • WiFi: Fix WiFi startup
  • WiFi: Add WiFi station state diagram
  • WiFi: Rename WIFI_STATION_STATE_RESTART to WIFI_STATION_STATE_RESTART_DELAY
  • WiFi: Move WIFI_STATION_STATE_OFF state
  • WiFi: Always stop WiFi station in WIFI_STATION_STATE_WAIT_NO_USERS

LeeLeahy2 added 11 commits July 8, 2025 08:22
Remove the chicken and egg issue where WiFi needs to be running to be
the highest priority, but has not started yet because it is not enabled!

The new routine, networkInterfaceRunning, allows any interface to poll
the network and determine if the interface should be running.  This
routine provides the missing feedback between the network and the
interface layers to when the network layer wants to stop the interface
and a stop sequence does not exist.
…_DELAY

Move startup delay from WIFI_STATION_STATE_STARTING into
WIFI_STATION_STATE_RESTART_DELAY
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.

1 participant