Chat freely about anything...

User avatar
By hortplus
#73730 i've tried various AP scripts but i cannot get my Android phone to connect to my nodemcu. Any idea where should start to look for the reason why?
User avatar
By hortplus
#73732 Her is my printout from:

WiFi.printDiag(Serial);

Configuring access point...Mode: AP
PHY mode: G
Channel: 1
AP id: 0
Status: 255
Auto connect: 1
SSID (0):
Passphrase (0):
BSSID set: 0
AP IP address: 192.168.4.1
HTTP server started

The script I'm currently trying to run is:

/* Create a WiFi access point and provide a web server on it. */

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

/* Set these to your desired credentials. */
const char *ssid = "ESPap";
const char *password = "12345678";

ESP8266WebServer server(80);

/* Just a little test message. Go to http://192.168.4.1 in a web browser
* connected to this access point to see it.
*/
void handleRoot() {
server.send(200, "text/html", "<h1>You are connected</h1>");
}

void setup() {
delay(1000);
Serial.begin(115200);
Serial.println();
Serial.print("Configuring access point...");
/* You can remove the password parameter if you want the AP to be open. */
WiFi.disconnect(true);
WiFi.setAutoConnect(false);
WiFi.setPhyMode(WIFI_PHY_MODE_11G);
WiFi.softAP(ssid, password);
WiFi.printDiag(Serial);
IPAddress myIP = WiFi.softAPIP();
Serial.print("AP IP address: ");
Serial.println(myIP);
server.on("/", handleRoot);
server.begin();
Serial.println("HTTP server started");
}

void loop() {
server.handleClient();
}
User avatar
By hortplus
#73738 i got the authentication problem sorted but i can't understand whats gone wrong. AP mode was working well but no matter what i try, it doesn't work. Boost power supply, trying various scripts. I just don't know what to try next. Uninstall the Arduino ide? What else can i try?