🎁📬❄️📦 Holiday Shipping Deadlines are approaching! International customers and domestic ground - get your orders in 12/9/2020 📦❄️📬🎁
0

Weird time stamp issue when sending data to adafruit server
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

Weird time stamp issue when sending data to adafruit server

by Spariot_MC on Wed Oct 21, 2020 7:08 pm

Hi

I found something illogical when testing my application. I send data to adafruit server every 5 seconds. It is normal to find some readings come in equally spaced time stamps. So times I find the reading come after 4, 6, or 7 or sometimes 8 sec, this is ok, as I thinks this is function in my internet speed. I found an issue that looked weird to me, which is that, some times the time get totally out of order, so I find for example readings with same time stamps, some times with period of 1 second only, sometimes with period of 15 sec, so this makes things not nice for me. Is this normal?

My second question, is about another relevant issue, it is that when I get several readings with same time stamp, sometimes sever puts them in wrong order! This means if I send 1,2,3 and in some situations it will display them for example 2,1,3 , which is totally unacceptable for application that depend on data order and plotting them with time.

I am using nodemcu development board.

please look at attached photo
error.png
error.png (119.68 KiB) Viewed 113 times

Spariot_MC
 
Posts: 1
Joined: Thu Oct 01, 2020 12:22 pm

Re: Weird time stamp issue when sending data to adafruit ser

by cjdshaw on Wed Nov 11, 2020 8:03 am

Spariot_MC wrote:Hi

I found something illogical when testing my application. I send data to adafruit server every 5 seconds. It is normal to find some readings come in equally spaced time stamps. So times I find the reading come after 4, 6, or 7 or sometimes 8 sec, this is ok, as I thinks this is function in my internet speed. I found an issue that looked weird to me, which is that, some times the time get totally out of order, so I find for example readings with same time stamps, some times with period of 1 second only, sometimes with period of 15 sec, so this makes things not nice for me. Is this normal?

My second question, is about another relevant issue, it is that when I get several readings with same time stamp, sometimes sever puts them in wrong order! This means if I send 1,2,3 and in some situations it will display them for example 2,1,3 , which is totally unacceptable for application that depend on data order and plotting them with time.

I am using nodemcu development board.

please look at attached photo
error.png


If your device has a real-time clock, you can use the created_at field to make sure the data is logged at the time it was measured, not the time Adafruit receives it

cjdshaw
 
Posts: 55
Joined: Mon May 08, 2017 4:04 pm

Please be positive and constructive with your questions and comments.