Open davidallendj opened 1 year ago
I believe that an ESP board can be connected to an SD-card, which could provide ample storage space and also be persistent in the event of power failure.
Which ESP board are you using? Mines doesn't have a SD card slot, so I'm guessing it's a different model.
It doesn't have an SD-card slot, but one can be wired up to it through the MOSI-MISO lines. Not sure if it can be made to work with LittleFS though: all the articles I've found so far have done it with SPIFFS.
To my knowledge, you should be able to replace SPIFFS with LittleFS without any issues (at least that's been my experience). I only ask because I know some ESP32 models have SD cards built with them like the ESP32-CAM, but I wasn't sure about any of the other ESP8266 models.
I'm thinking it might be better to make including a SD card/SPI as optional that can be compiled out since ESP8266 devices don't come with them by default. My original thoughts were to try and target just using the board itself for majority of the functionality and then add modular bits to expand the overall capabilities and features (like with the RFID and LCD display).
I'm thinking it might be better to make including a SD card/SPI as optional that can be compiled out...
Yes, that would be sensible.
Not completely sure how this will be done, but the intention is the remember a user whenever they connect to the device and then the home page. It may be possible to create a login page with a simple CRUD interface on top of SQLite. Of course, space on the board may be a concern and the number of users that can register will be limited. Users can stay logged in by storing a session cookie in the browser.