Hi all! I’m working in an application that reads soma values through Serial port and process it. The program also saves all reads in a TXT file in SD.
By now, every time I have to write some data I execute this:
PersistentStorage sdPS = new PersistentStorage("SD"); sdPS.MountFileSystem(); ...
If I receive data in a very short time, problem begin. I’ve seen that:
PersistentStorage sdPS = new PersistentStorage(“SD”); takes 1343ms
sdPS.MountFileSystem(); takes 483ms
I think, a solution can be do this only the first time I write something, instead of do it every time I write. In the other hand i think I can have some problems bacause of closing filesystem.
Can anyone help me??