Sming fileSetContens sometimes resets ESP-WROOM-02

Posts: 2
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.


     * 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:

                   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 1 guest