Have you also looked at this tutorial?
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 can control from a web page anywhere and monitor the position of the servo too!
Here’s a preview of the finished tutorial:
[image]
There is a coarse adjust slider, two fine adjust buttons, and the current position of the servo is displayed. That…
While it is dated (some of the image links are broken) and you will need to replace https://api.spark.io/ with https://api.particle.io/ now, the fundamentals have not changed.
A more recent approach would be the Particle API JS (in particular callFunction() )
This does require some basic HTML and JS knowledge but building that that is beyond the the scope of this forum.