-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Implement multiple WiFi #3709
Implement multiple WiFi #3709
Conversation
blazoncek
commented
Jan 20, 2024
- similar/alternative to Added multi WiFi saving feature #3705
- solves Two or more WiFi settings #2845, Feature Request: Support saving multiple WiFi passwords #2974, Multiple SSID support #852
@blazoncek If I wanted to make a change to your solution, how do you like I make it? By a patch file or by a PR to multiwifi branch? |
Start off by reviewing my PR. |
I just sent you a review btw. Mainly I don't like the way you try to connect to an available network, it has many flaws |
I do not see any comment or review on Github. Where did you send it to? |
You need to finish/submit it for me to see it. I cannot see pending review. |
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.
I added two more issues that I found while testing your code.
Due to the first one on set.cpp
or cfg.cpp
, I cannot continue testing it, so maybe there're more issues.
- prioritize strongest signal - prune removed networks - fill present networks
Init wifi for scan Always save WiFi name
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.
I've added three more issues that I found.
One related to the webpage, and the others two to the wled.cpp
@JPZV I think this is now complete. |
Okey! I'll test it right now and I'll give you my feedback today :) |
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.
It looks nice. I only found a minor bug. Not sure if it needs a fix, so I'll leave it as a comment
|
||
strlcpy(multiWiFi[n].clientSSID, request->arg(cs).c_str(), 33); | ||
if (strlen(oldSSID) == 0 || !strncmp(multiWiFi[n].clientSSID, oldSSID, 32)) { | ||
forceReconnect = true; |
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.
Seems that setting the SSID to empty while connected to the WiFi doesn't triggers this ForceReconnect.
It's a silly issue because after a restart it'll behavior as intended, but I wonder how deep would be this issue
@blazoncek I just checked that I wasn't mentioned in v0.15.0-b1 credits |
How would you want to be credited? |
As a Contributor related to the Multi-Wifi feature, as I worked along with you to make it possible. |
Will be included in next changelog update. |
@JPZV I thank you for helping implementing this. Even without credit, I appreciate your efforts. |
Is there a limitation on which platforms this works? Esp8266 supported? There is no info in wifi setup how to enable multi wifi. The documentation seems to be outdated in that regard also. How can we show new users how to use this feature? |
You are correct. I did not notice the + sign. Thank you for the clarification. I should have noticed! |
You can, if you wish, and contribute by updating KB to clarify that. See WLED-Docs. |