I’m setting up a system to monitor water tanks back to a web page. I have a lot of the Photon FW and even some of the html/js figured out. I would like to pass a timestamp from Photon back to the web page so the user can see if there has been any significant delay since the last update. I don’t need to do any manipulation. Just read it and pass it.
There may be a better way to do this. If so, I am open to suggestions,but if not, I am having a hard time figuring out how to declare a variable to receive timeStr() so I can pass it back to the web page.
As far as I can tell from reading everything I can find - timeStr() returns a string. How do you declare a string variable on the Photon? Or, how can I set up a variable to receive timeStr()? I have tried declaring various forms of char, but get compile error messages complaining about mixing char and string variables.
Thanks for your help