I have a Particle Electron running with a
setup() that contains
In the loop I then run a number of
Particle.Publish() commands, which send a string of sensory data, including the timestamp.
The timestamp is generated like this:
String tStamp = Time.format(Time.now());
Occasionally, the timestamp generated seems to be Epoch, instead of the current time - am I missing something obvious here?
An example of an incorrect timestamp:
Nearly always it returns the current ISO8601 date time, however this happens very sporadically and is not something I’ve found to be repeatable.