ESP8266 Developer Zone The Official ESP8266 Forum 2017-11-09T12:50:34+08:00 https://bbs.espressif.com:443/feed.php?f=6&t=8303 2017-11-09T12:50:34+08:00 2017-11-09T12:50:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=8303&p=18077#p18077 <![CDATA[Sming fileSetContens sometimes resets ESP-WROOM-02]]>

Code:

void ApplicationSettingsStorage::saveFunction(void *arguments)
{
    Serial.println("Saving settings...");

    const String json=getJson(false,
                              true); // Passwords are saved, timestamps are updated on every save.

    Serial.println(json);

    /*
     * Excluded reasons for bug:
     *     - NON-NULL Terminated String: I've explicitliy added "\0" to json variable before saving it to file,
     *                                   same result, random reset
     *     - Memory corruption:

    fileSetContent(APP_SETTINGS_FILE,
                   json);   // BUG: Here occurs random reset !!!
}   // saveFunction

Now, calling fileSetContent forces whole ESP-WROOM-02 SOMETIMES TO RESET on random occasions. Why?

Statistics: Posted by KernelPanic — Thu Nov 09, 2017 12:50 pm


]]>