SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
filesystem.cpp
Go to the documentation of this file.
1#include "sensesp.h"
2
3#include "filesystem.h"
4
5#include "SPIFFS.h"
6
7namespace sensesp {
8
10 if (!SPIFFS.begin(true)) {
11 ESP_LOGE(__FILENAME__, "FATAL: Filesystem initialization failed.");
12 ESP.restart();
13 }
14 ESP_LOGI(__FILENAME__, "Filesystem initialized");
15}
16
18 SPIFFS.end();
19}
20
22 ESP_LOGI(__FILENAME__, "Formatting filesystem");
23 SPIFFS.format();
24}
25
26} // namespace sensesp
virtual void reset() override
Automatic calling of the reset() method when the device needs to be reset.
Definition resettable.h:20