Thanks so much for posting this. I am new to Smart & have been working with this example. I keep thinking I must be missing a manual somewhere, is there somewhere with basic documentation on the language in use here? For example, how to get the current date/time, syntax for the logging functions, etc? Are there loops?
Specifically on this code you use it.toString in the temperature event handler, but I can’t figure out where that object came from. It doesn’t seem to have been passed to the event handler, so I’m thinking it must be built it somewhere, but I can’t figure it out.
I’d like to convert this code to send temperature data periodically using the schedule function, but I keep reaching for a manual I don’t seem to have.
Sorry if this is a stupid question, any pointers appreciated.