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

SSID name and password for AP aren't working #94

Closed
lemio opened this issue Apr 21, 2015 · 3 comments
Closed

SSID name and password for AP aren't working #94

lemio opened this issue Apr 21, 2015 · 3 comments

Comments

@lemio
Copy link
Contributor

lemio commented Apr 21, 2015

When uploading this code, a nework called ESP_A0EFD1 with no password appears instead of the network with 'test' as SSID and 'test' as password...

#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>

const char* ssid = "test";
const char* password = "test";


ESP8266WebServer server(80);

const int led = 13;

void handle_root() {
  digitalWrite(led, 1);
  server.send(200, "text/plain", "hello from esp8266!");
  delay(100);
  digitalWrite(led, 0);
}

void setup(void)
{
  WiFi.mode(WIFI_AP);
  Serial.begin(115200);
  pinMode(led, OUTPUT);
  digitalWrite(led, 0);

  // Connect to WiFi network
  WiFi.softAP(ssid, password);
  Serial.println("");

  // Wait for connection

  Serial.println("");
  Serial.print("Connected to ");
  Serial.println(ssid);
  Serial.print("IP address: ");
  Serial.println(WiFi.localIP());

  server.on("/", handle_root);

  server.on("/inline", [](){
    server.send(200, "text/plain", "this works as well");
  });

  server.begin();
  Serial.println("HTTP server started");
}

void loop(void)
{
  server.handleClient();
} 

image

@igrr
Copy link
Member

igrr commented Apr 23, 2015

"test" doesn't look like a valid WPA2 password — it has to be at least 8 characters.
Perhaps you could try again with "testtest" as a password?

@lemio
Copy link
Contributor Author

lemio commented Apr 29, 2015

That did the job, thanks! Can we prevent users from choosing to small passwords

@igrr
Copy link
Member

igrr commented May 12, 2015

This is now documented in Readme.

@igrr igrr closed this as completed May 12, 2015
Normola pushed a commit to Normola/Arduino that referenced this issue Feb 19, 2020
Now use GPIO2 to blink the ESP LED
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