Timestamp rounding bug? #22349
Unanswered
Grumium
asked this question in
Support request
Replies: 2 comments 10 replies
-
Nice one. I'm surprised it happens so often. Are you doing the command at specific time? Using cron? |
Beta Was this translation helpful? Give feedback.
1 reply
-
It's a simple "bug/feature". As time is is second based I had to add a seperate milisecond counter. This one is hard to sync with the second interrupt without forced missed milliseconds. If you find a beter way, pls provide one. The code is in support_rtc.ino |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am simply using the "Time 4" command to obtain a timestamp with millisecond resolution.
tasmota.cmd("Time 4",true)["Time"]
I take this string and I am publishing it via MQTT. Below, I posted a snippet of the output in the web console to showcase my problem. Please take a look at the timestamps printed in bold. I am running Tasmota 14.2.0 on an ESP32.
I doubt this is intentional, but I wanted to discuss with you first, before opening an issue.
Thank you for your support!
Beta Was this translation helpful? Give feedback.
All reactions