title: ESP32: Best way to store data frequently?
body: <p>I'm developing a <strong>C++</strong> application in the <strong>ESP32-DevKitC</strong> board where I sense acceleration from an accelerometer. The application goal is to store the accelerometer data until storage is full and then send all the data through WiFi and start all again. The micro also goes to deep-sleep mode when is possible.</p>
  <p>I'm currently using the ESP32 <strong>NVS library</strong> which is very well documented and pretty easy to use. The <strong>negative side</strong> of this is that the library uses Flash memory, therefore a lot of writings will end up <strong>degrading the drive</strong>.</p>
  <p>I know that Espressif also offers some other storage libraries (FAT, SPIFFS, etc.) but, as far as I know (correct me if I'm wrong), they all use Flash drive.</p>
  <p>Is there any other possibility of doing what I want to but without using the Flash storage?</p>
  <p><strong>Aclarations</strong></p>
  <ul>
  <li>Using Flash memory is not the problem itself, but <strong>degrading it</strong>.</li>
  <li>Storage <strong>has</strong> to be <strong>non volatile</strong> or at least <strong>not being erased</strong> when the micro goes to deep-sleep mode.</li>
  <li>I'm not using any Arduino library.</li>
  </ul>