I write code to upload to ESP8266. I wish to use time stamp in order to log events. I found an NTP sketch, I can work with ( since it has a wifi connection ), but I wish to keep my code as simple as possible.
So I'm thinking to use my MQTT server to send time updates from time to time ( have a certain topic for that ), and in between updates, use
Since I'm new here, I want to know from experienced programmer if it makes sense ? I would love to hear pros and cons ( before I start coding ).
Any help will be appreciated,