Skip to content
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

Help me understand why "We want the device to come up in opmode=0 (WIFI_OFF)" (WiFiSettingsService.cpp) #305

Open
JimThatcher opened this issue Jun 8, 2022 · 0 comments

Comments

@JimThatcher
Copy link

What is the benefit of bringing the device up with the WiFi mode set to WIFI_OFF in the constructor of WiFiSettingsService? I understand that before the device has been configured we want it to come up in AP mode, but I don't understand why we wouldn't want it to go into STA mode and attempt to connect to the last known WiFi network the rest of the time. Is this necessary to get the WiFi configuration under the control of the StatefulService, or to restore the settings from the filesystem?

I'm also unclear on the purpose of setting the WiFi mode to WIFI_MODE_MAX, which has no defined meaning, then immediately back to WIFI_OFF (through equivalent enum WIFI_MODE_NULL).

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

No branches or pull requests

1 participant