new-ish to the Arduino world, and just having some issues getting my head around how to do something.
In a Python script I have written, I have a class that sits in the background and sends data to a db ... if the machine should lose connectivity with the db server, the class will store the entries (in Memory and a file) until the connection is restored .... this journal file it keeps of things that have yet to make it to the db, so that if there is a power outage, it can come back and continue on where it left off.
I realize that there may not be a similar multitasking module for Arduino, and I am willing to forgo the journal file, and try and fake the rest of the functionality. So I can at least keep several sets of data on board till connectivity is resumed.
I know I could write to the flash on board, but I wanted to either keep that to an absolute minimum, or not at all. I know this will make it unsafe for power outages, but I am ok with that for now.
research so far, I have chosen an array, that I stick entries in, when the connectivity is down ... and will send them to the db when connectivity is restored.
Was wondering if this is a sensible way to approach it, or if there are better examples of dealing with connectivity, and still collecting data ?