Pushing Data After Internet Down

I noticed the below when I was tracking one of my devices on serial monitor:

  1. The device is connected to cloud and sends its reading every 5 seconds.
  2. The internet went down for 2 mins.
  3. The internet came back.
  4. There were about 24 data packets sent with 1~2 seconds between successive transmissions.

Is this how it is meant to be? Will the data transmissions be appended in database to fill all the points that were missing?

  • How are you seeing these packets and determining the frequency

  • How was the data being transmitted (i.e. what command processes)

  • Do you use any connection detection routines in your code? If not then how did the device manage to store the data?

  • Were you using a sync command upon reconnection?

  • Was the 24 data packets outgoing from the Device to the Server or other way around from a sync?

Basically, we would need more data and clarification to fully follow your question… But I suspect if you are using the 0.5.0 library and perhaps a sync command, that might explain the spaced out transmission as there is some form of “anti-flooding” prevention in that library.

I saw the sent data on serial monitor with stop watch being used to detect timing between sending data.

And all the other details? Still can’t guess at your issue let alone attempt a resolution, or at least explanation.