Closed thefeiter closed 2 years ago
I have checked the date in the filesystem via a sketch. Seems to be working. But there is no convenience method to load the data onto your computer without uploading a different sketch.
A Http Fileserver maybe...
Works as expected. Retrieving the files shall be done sometime later.
Okedoke. A few thoughts as I contemplate this:
- A major usefulness of this will be to automatically update the server with missed readings on reconnect.
True
- I think the seconds as a back up isn't necessary.
For the internal Flash, yes. Since one cannot easily read the files. But for the SD log it is still useful to be able to see not only in which order values came in but also how far apart time wise. And since I would keep the seconds since reset for the SD log I would also levae them in the Flash log.
- its something to research
True
When logging to SD+FS with the stresstest only every 7th reading makes it to the sd card
When logging only to SD only every 2nd reading comes through
When logging only to FS every 8th reading makes it to the internal flash
Sooo, uhm yeah. Maybe buffering is a good idea. But I think the stresstest is going to extremes anyways, so for normal usage this should be ok for now. (for the already merged SD log)
I think the main thing that irks me is that the timestamp will be non-standardized. In the docs we'll have to say "it will look like this... except when it looks like this...". I think this functionality should assume the user has WiFi/internet and can get the time. If you're worried about power failures (losing both internet and rtc time) then implementing a battery backup is your option. I'll think more about this, but it's super-late and I'm going to sleep now. Thanks for all your help! Tomorrow I'm hoping to lay groundwork for the new packet confirmation feature, which is the first of the improvements Andreas called for in his video.
But I think the stresstest is going to extremes anyways, so for normal usage this should be ok for now.
True.
Now it is at least buffering the whole line to write. ~97% make it to the sd card with the stresstest. Writing to flash is now at 20%, this seems to be a weird bottleneck. I thought the internal FS would be the fastest...
So further buffering would be good. At this point I would need some help/do some reading how such a buffering is done best.
Thanks for switching this to LittleFS. SPIFFS is a fragile headache of a file system.
As discussed in #42 I implemented a possibility to log data to the internal SPIFFS Filesystem.