Report Bugs Here

Moderator: Mmiscool

User avatar
By forlotto
#40324 AP name does not appear to change stays stuck at default name ESP.

This becomes a problem when someone has multiple ESP's in their home for instance.

The settings page and the wifi all seem better being less persistent but, there are some issues.

1. AP Name as mentioned
2. Double connection type AP and STA seem to cause the esp to crash.

Resolutions:
- Figure out what is causing ESP SSID to over ride the name I enter LRLIGHT for my SSID
- Have a connect button that will put it in station mode and drop AP until you hit the disconnect button which will bring up AP only mode and take the saved settings out of memory but retain them on the page. While it is nice having both connections the ESP is unable to handle them and handle a simple program without crashing so it is rather pointless to have both modes running... However maybe the ESP32 will fix this with the multicore processor and tons of extra ram.


Just my observations and 2cents.

Believe me I'm not knocking the effort it wasn't fruitless I kinda helped push for dual connection but the truth is if you connect to AP and the settings are remembered by the PC you are connecting from and it is connected on station as well from the same or another device you try to control it it causes the ESP to hang.

This is where people are having troubles I think which is the reason for my suggestion on the fix. The esp in current form is not a have your cake and eat it too device just not enough hardware to handle everything albeit it is and was a valiant effort. Problem is it only works for one or the other not both we just have to live with this plain and simple.

PS the updates were nice!
Last edited by forlotto on Sat Feb 20, 2016 8:23 pm, edited 1 time in total.
User avatar
By forlotto
#41014 http://www.esp8266basic.com

Need to check the latest version this weekend and see if AP Name actually changes using the settings page if it does not may have to roll back to a version that works.

So far the only AP name that is used has been ESP. I can change the name in the settings reset the unit the name of the AP connection does not change instead of the AP SSID being named LIGHT as it is set to and shows up on the settings page the name remains as ESP no matter what after a save, reset etc... Still the AP SSID is ESP and cannot be changed via the settings page.
User avatar
By forlotto
#41405 This appears to be the AP code it supposedly stores the Network name in a file called APname I wonder if placing a text file without the .txt extension with the AP name I want on the filemngr would allow me to change my AP name it would appear that this would be so from the code thinking out loud here.... Then I could create APpass as well and save both files via the filemngr application maybe?

Any input would be cool still looking at the code to see where the IDE or Terminal or Whatever You want to call it is stored I would like to learn how to potentially mod this to make changes as I see fit it don't look all that difficult really thus far but hard saying for sure I've never messed with it.

Code: Select allvoid CreateAP(String NetworkName, String NetworkPassword)
{
  WiFi.mode(WIFI_AP_STA);
  Serial.println("Creating WIFI access point");


  if (NetworkName == "")
  {
    NetworkName = LoadDataFromFile("APname");
    NetworkPassword = LoadDataFromFile("APpass");

    if (NetworkName == "")
    {
      NetworkName = "ESP";
      NetworkPassword = "";
    }
  }

  Serial.println(NetworkName);


  int str_len = NetworkName.length() + 1;
  char ssid[str_len];
  NetworkName.toCharArray(ssid, str_len);

  str_len = NetworkPassword.length() + 1;
  char password[str_len];
  NetworkPassword.toCharArray(password, str_len);

 
  delay(2000);
  if (NetworkPassword.length() < 8)
  {
    WiFi.softAP(ssid);
  }
  else
  {
    WiFi.softAP(ssid, password);
  }
  delay(2000);

  SaveDataToFile("APname" ,  NetworkName);
  SaveDataToFile("APpass", NetworkPassword);
}
User avatar
By Mmiscool
#41406 The file manager only looks at things that are stored in a specific location and will not expose the rest of the file system.