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

Multiple WiFi options with the same name #600

Open
Crazysnakepop opened this issue Jan 26, 2024 · 1 comment
Open

Multiple WiFi options with the same name #600

Crazysnakepop opened this issue Jan 26, 2024 · 1 comment

Comments

@Crazysnakepop
Copy link

Screen Shot 2024-01-26 at 1 31 43 PM

Issue I'm experiencing is multiple wifi SSID names showing up when WiFi configuration window is displayed. Additionally, no choices selected work with the correct password.

I've tried multiple boards including the HelTec HTIT-WB32 and the NODEMCU ESP-32S. Both say they program seccuessfully using the web
esp-web-tools-logs.txt

I do not have any guest networks turned on for my router but I'm also seeing multiple networks for my neighbors as well. I've attached the log which shows it's trying to connect but each time it fails, I select the next Rodeman network in the list and try again. To ensure I have the password correct, I disconnected my laptop from the home network and forgot the network so it would prompt me for the login/password again. The laptop connects without any issue.

Bug report

Problem

Steps

Example

Notes

@rbergen
Copy link
Collaborator

rbergen commented Feb 9, 2024

@Crazysnakepop The WiFi network list passed to the Web Installer is the exact same list returned by the WiFi library we use (the one embedded in Arduino ESP-32), which gets it from the WiFi chip on your device. From our perspective, this is a "black box".

At the Web Installer side, the whole WiFi connectivity flow - including the part that shows the list - is part of a dependency we use for that (ESP Web Tools). Which again is something we can't "look into".

With that I don't mean to say that this behavior isn't problematic, but it's also caused somewhere in one of two black boxes from our codebase's perspective.

What the logging you provided shows is that the network layer that is part of our codebase concludes that no valid set of WiFi credentials are passed, which means the SSID, the password or both are empty.

From a practical perspective you could try manually entering the WiFi SSID instead of selecting one from the list (the manual entry option should be at the bottom of the list of SSIDs you're looking at).

To see which "black box" (the WiFi stack or the Web Installer component) causes this, you could enable Improv logging for your configuration. That would allow us to see exactly what your devices get back from the WiFi stack, and also what credentials get passed down from the Web Installer.
This would require you to set up a local build environment (install PlatformIO, download or clone the source, etc.), make a small code modification to whatever configuration you're using and then build and flash that custom image.
I'm happy to provide further pointers for the code modification, but I think it makes sense for you to first get to the point that your local build environment is set up and confirmed working - if you're so inclined, of course.

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

2 participants