I am learning arduino for the last two years and the last months I'm working with the creation of my own weather station.
Well, I needed to find a place to store data in a temporary place every 4 seconds to later send them at my server (it doesnt realy matters right now). So I chose the SD card memory.
After a lot of time trying to figure out the best way to make it possible which fits in my situation I came up with the following code(I deleted the server part for easier debugging).
However, I have a very strange problem that i cant solve for a long time! After the SD card has been initialized it sometimes strugles to save the data into the SD for an uknown reason and this is not a stable preformance.
I tried getting rid of almost every String by making char* but there's still the same problem.
Please, I realy need your help because is also a project for our school team and I know that most of you have more experiance than me.
Even if you had maybe a similar problem and you found a type of solution please do not overlook to reply.