Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By luketanti
#21134 Hi all. First of all thanks for this great library.

I have been trying to connect to my AP which the SSID contains spaces.
But instead of spaces it saved a plus sign '+' instead. This made it impossible for the ESP to connect to my AP.

In the library I have modified a little the setEEPROMString method.

Code: Select allvoid WiFiManager::setEEPROMString(int start, int len, String string) {
    int si = 0;
    for (int i = _eepromStart + start; i < _eepromStart + start + len; i++) {
        char c;
        if(si < string.length()) {
            c = string[si];
         if (c == '+')
            c = ' ';
            DEBUG_PRINT("Wrote: ");
            DEBUG_PRINT(c);
           
        } else {
            c = 0;
        }
        EEPROM.write(i, c);
        si++;
    }
   
}


All I have done is to replace any '+' characters with a space ' ' character.

It worked fine after this modification.
Hope this helps someone :D
User avatar
By reaper7
#21741 @alextu - which version of ESP8266 Arduino ide You are using?
Because I have problem with You lib and newer versions of IDE/libs
Last OK is 1.6.4-628-g545ffde...
so I think that some changes with AP scan or WebServer :(
I got info on uart console that new client are connected,
Your library starts scanning for available APs but on connected webclient I got
info that page is not available (in half time of scanning), the same issue on android browsers and windows browsers :/
User avatar
By alextu
#21767 hi,

i m using arduino 1.6.5 and esp core 1.6.4-673-g8cd3697, the latest one released on board manager stable.

could you post the serial dump you get and the ip/adderess you are using in the browser?

maybe i should add some more meaningful debug to serial as well

cheers