Arduino sketch - add time stamp #45
Replies: 3 comments
-
You could probably include a NTP library in your sketch and print the time when an event is triggered |
Beta Was this translation helpful? Give feedback.
-
Do you need the actual time or only something relative to when the arduino was booted ? If you need the actual time, NTP would probably be needed as mzac suggested. This means the arduino needs to be connected to the internet. If you only need something relative to when the arduino was booted, it would be much more simple to implement using millis(). If you need to log the events on an other computer, you could simply sent the events as they happen and timestamp them when they are received by the logging computer. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the info, i add time via php in script. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Is possible to add time stamp from dsc to view it on serial port?
Beta Was this translation helpful? Give feedback.
All reactions