I need to:
- change a LED state
- by clicking the bookmark in my home screen (iOS)
Well, clicking some bookmark means that I’ll be doing a HTTP GET to Spark
I’ve done some research, and I understood that GET’s are meant for Spark.function()
and that POST’s are for Spark.variable(). But I just need to make sure someone did the GET, nothing else.
So. Is it possible to attach another function to a Spark.variable() call? Where should I be looking at? Any other suggested solution?
If possible, I wouldn’t like to directly use TCPServer… it doens’t seem like a reliable solution.