Buffer for Ubidots uploading? Using Particle Electron + SD card


#1

Hello Ubidots 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!


#2

Hello @Adam_B, I have not implemented a local logger with Particle devices but I may give you some advices:

  1. Learn how to write properly data into your SD cards.
  2. Once you know how to write data, you will have to store not only your data but the custom timestamp to be sent later. Your routine should ask constantly the actual timestamp.
  3. If you are going to use our library, to send a custom timestamp call the add() method with this structure: add("var-name", value, NULL, timestamp); (please refer to the examples for more information).

Hope this gives you additional hints to make your project!.

Regards