Has anyone considered extending the spark cli program and by extension the ‘cloud’ so that we can write variable data into the spark?
Obviously I can have my cores do TCP requests of various servers to do this, but I would like something like
spark variable set <variable_name>
As well as a matching thing using a URL.
It would also follow then to be able to publish events available too.
Thanks
kevin
@27escape ,
you can do this now using a Spark.function()
that sets variables using the value you pass it.
Not perfect but works for most of us
With that said, being allows to SET variables would be nice!
1 Like
Good suggestion, I had not considered that, I guess I could also do something similar with the publish command too (now that I notice the cli program has it!)
Thanks v much
kevin
1 Like
Moors7
February 5, 2015, 4:20pm
4
Take a look at this tutorial to get a feel for how you could go about adjusting variables using the Spark.function():
Let’s say you have a Spark core with both a Spark variable and a Spark function. In my case, I have the world’s simplest servo control sketch, using the nice miniature servo in the Spark Maker Kit. Using these parts, we will build a servo that you...
Reading time: 18 mins 🕑
Likes: 65 ❤
Thats great thanks, lots of things to follow up reading
kevin
1 Like