Buffer for Ubidots uploading? Using Particle Electron + SD card

Hello Particle Community!

I am looking if anyone has experience making an external memory buffer for Ubidots uploads?

I want to make a buffer to Ubidots such that if an upload fails it will be recorded and then be added on the next attempt.

Hardware:
Particle Electron 3G
Micro SD breakout board

Details:
Upload is once a minute.
There are 10 variables, 1 of which has GPS context

Any insight would be great!

Thanks!

Shouldn’t a TCP upload work without error or retransmit if there is an error? UDP has the potential to drop the packet but TCP has the error correction built into the communication (ironically that’s exactly what I am trying to do today and making sure the data gets there is critical to my sanity).

I believe you are correct for the TCP vs UDP difference. However, a situation can occur where my particle looses cellular connection for an extended period of time. I have the program set to continue operating in these conditions. from what I have seen so far, after trying 5 times TCP will eventually stop trying. If my device keeps running, I’ll keep having data points to upload later when cellular connection resumes.