Skip to content

getting the esp8266 to connect to a hidden ssid #3457

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

Closed
ghost opened this issue Jul 24, 2017 · 6 comments
Closed

getting the esp8266 to connect to a hidden ssid #3457

ghost opened this issue Jul 24, 2017 · 6 comments

Comments

@ghost
Copy link

ghost commented Jul 24, 2017

Please fill the info fields, it helps to get you faster support ;)

Basic Infos

Hardware

Hardware: wemos d1 mini
Core Version: 2.3.0

Description

I am trying to get my wemos d1 mini to connect to a hidden ssid, it is a network with WPA2-PSK security. I have tried to connect to this network with a few of the example scripts and it is not working. I have looked into it and found this forum post #2390, there somebody came to the conclusion that his ESP8266 was set to n-only mode and it needed to be set to b/g/n mode. I am not sure what he meant by this. I did some research and apparently it has something to do with radio types but I still don't really understand it because it seems that you can only set it to n b or g not all 3.

Settings in IDE

Module: ?Generic ESP8266 Module?
Flash Size: 4MB
CPU Frequency: 80Mhz
Flash Mode: arduino ide
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: ?ck / nodemcu?

Sketch

#include <ESP8266WiFi.h>

void setup()
{
Serial.begin(115200);
Serial.println();
WiFi.begin("ssid", "password");

Serial.print("Connecting");
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(WiFi.status());
}
Serial.println();

Serial.print("Connected, IP address: ");
Serial.println(WiFi.localIP());
}

void loop() {}

Debug Messages

running this script will print WiFi.status() and that results in a lot of 6 (WL_DISCONNECTED) sometimes a 4 (WL_CONNECT_FAILED) and sometimes a 1 (WL_NO_SSID_AVAIL)

@5chufti
Copy link
Contributor

5chufti commented Aug 3, 2017

it was not the esp that needed change of setting, it was the router ...

I found that Mikrotik's n-only mode was the cause of this, the esp connects just fine to hidden ssid when the AP is set to b/g/n mode.

@devyte
Copy link
Collaborator

devyte commented Sep 26, 2017

@5chufti is your use case addressed with your router change? If so, then please close this.
If not, please try PR #3215 to see if it addresses it. There is a known issue when trying to connect to an AP with hidden beacon, and the changelist for SDK 2.1.0 mentions a fix.

@devyte devyte added the waiting for feedback Waiting on additional info. If it's not received, the issue may be closed. label Sep 26, 2017
@5chufti
Copy link
Contributor

5chufti commented Sep 26, 2017

Hi devyte,
I didn't have the issue, only tried to explain #2390 to emilevs

@devyte
Copy link
Collaborator

devyte commented Sep 26, 2017

Sorry, feedback request was for @emilevs

@ghost
Copy link
Author

ghost commented Sep 27, 2017

I recenlty found out that they mistyped my ssid when I gave it to them, so that pretty much explains it

@devyte
Copy link
Collaborator

devyte commented Sep 27, 2017

Ok, then closing as resolved.

@devyte devyte closed this as completed Sep 27, 2017
@devyte devyte removed the waiting for feedback Waiting on additional info. If it's not received, the issue may be closed. label Sep 27, 2017
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