Moors7
January 29, 2015, 2:53pm
2
You could expose the variables using Spark.variable() by polling repeatedly. The more elegant solution would be using Spark.publish() which allows you to push the ID as soon as it’s scanned, making it as real-time as possible.
Take a look at these topics to get a feeling on how to use either:
Here’s a tutorial to get you started using Spark.publish(). Let’s imagine you want to monitor your core’s uptime, that is, how many hours, minutes, and seconds since the last time the core was reset or powered-up and view it on a web page that you...
Reading time: 15 mins 🕑
Likes: 100 ❤
If you have seen my Spark.publish() tutorials, you know that I like to have private web pages (since if it was public, your access token would be exposed) that read and even graph data from my Spark core. Well, you can do similar things with...
Reading time: 18 mins 🕑
Likes: 63 ❤
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 ❤
Let’s say you have looked at the Getting Started with Spark.publish() tutorial, but you need to send data that needs more processing once it gets to its destination on the web. You have a lot of choices for the data format, but one simple choice is...
Reading time: 23 mins 🕑
Likes: 63 ❤
Let me know if that helped and/or you need additional help.
Good luck!
1 Like