Post topics, source code that relate to the Arduino Platform

User avatar
By Vinylon
#25099 Sorry if that was confusing; the access point works fine with a password, but the server only starts when I don't use one. I am using a >8 char password. Here's my test sketch:

Code: Select all#include <ESP8266WiFi.h>

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

IPAddress addr = { 192, 168, 4, 1 };
WiFiServer server(80);

void setup() {
  WiFi.mode(WIFI_AP);
  WiFi.softAPConfig(addr, addr, {255, 255, 255, 0});
  WiFi.softAP(ssid, password);
 
  server.begin();
  delay(25);
}

void loop() {
  WiFiClient client = server.available();
  if (!client) { delay(500); return; }
  client.flush();

  String response = "HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\n\r\nHello";
  client.print(response);
  delay(1);
}
User avatar
By Vinylon
#25136 I'm using 1.6.6, built from c6e2a29; I switched from a build using 1.6.1 because it was missing some libraries.

But I figured out the issue; I had a couple of _s in the ssid, which apparently causes problems somewhere along the line. Changing it from 'ESPN8266_The_Ocho' to 'ESPN8266TheOcho' makes it work correctly.

So for anyone else running into this issue, try removing special characters from the ssid. Thanks for the help!