Sming fileSetContens sometimes resets ESP-WROOM-02

KernelPanic
Posts: 4
Joined: Tue Oct 10, 2017 4:46 pm

Sming fileSetContens sometimes resets ESP-WROOM-02

Postby KernelPanic » Thu Nov 09, 2017 12:50 pm

I app I am working on, I am trying to save WiFi credentials on SPI Filesystem with following method:

Code: Select all

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?

Who is online

Users browsing this forum: No registered users and 65 guests