How to get exact "created_at" timestamps in thingspeak?
Niklas Maximilian Busse
on 16 Aug 2022
Latest activity Reply by Niklas Maximilian Busse
on 18 Aug 2022
Hi everyone,
I want to know how much time my data takes from uploading it to a thingspeak channel until the channel receives the data. Therefore I am sending a unix timestamp as data to my thingspeak channel. When ThingSpeak receives the datapoint, it creates a timestamp itself called "created_at". But this "created_at" timestamp measures only seconds, while the unix timestamp, that is sent as data, measures milliseconds. Because of this, it can happen, that the unix timestamp in the data is bigger than the "created_at" timestamp from thingspeak, which makes no sense.
Does anybody know if there is a way that the "created_at" timestamp also measure milliseconds? Or if there is a better way to measure the latency between my system and ThingSpeak?
4 Comments
Time DescendingYou can get the system time in a MATLAB analysis script (for example using datetime('now'); and also use thingSpeakWrite to write data to the channel. You can use a field to store higher precision than the created_at timestamp.
Sign in to participate