Chat freely about anything...

User avatar
By cookieoreo18
#85983 I have an ESP8266 and i want to set a soft access point. I have done this many times before but today things decided to go wrong. I click "upload" and after some seconds Arduino IDE says that the scetch has been successfully uploaded but it actually hasn't. The esp8266 is not flashed but has the previous scetch which i flashed 1 week ago. I tried using UECIDE to flash it with no luck.
Here is the code, its pretty simple:
Code: Select all#include <ESP8266WiFi.h>

void setup()
{
  Serial.begin(115200);
  Serial.println();

  Serial.print("Setting soft-AP ... ");
  boolean result = WiFi.softAP("ESPsoftAP_01", "pass");
  if(result == true)
  {
    Serial.println("Ready");
  }
  else
  {
    Serial.println("Failed!");
  }
}

void loop()
{
  Serial.printf("Stations connected = %d\n", WiFi.softAPgetStationNum());
  delay(3000);
}