Chat freely about anything...

User avatar
By wonderfuliot
#77791 Hi,

I want to develop a local webserver using ESP8266-NodeMCU, however even a simple program is very unstable.
Sometimes when connecting to the ESP web server using an android phone, the latter gets IP address in 3-4 seconds, but sometimes it fails and Android phone connects to the last successfully connected WiFi instead of my server. Some times the android phone shows "Obtaining IP address" and then times out.

Attached is the simple code I am using.
Code: Select all#include <ESP8266WiFi.h>

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  WiFi.softAP("TestSSID", "12345678");
  Serial.println("AP started");
}

void loop() {}


I tried different NodeMCUs, even put external power adapter and erased 4 MB flash (to erase previous config ) but nothing has solved the problem yet.

Thanks and Regards,
WI