Can someone help me how i can send the R,G,B values from the colorpicker php site to my Spark Core.
Thank you for your help
@jerryaertssen, you could convert your RGB value to a string and call a on your Spark with that string value. In the function, you then parse out the RGB and convert them back to integers using atoi() for example. Spark.function()
Thank you for your reply, that seems to be the correct way to do it.
in order to send the rgb text values to the spark core i can use php right? or do i also need to use Curl (new for me)
How would this line for example can be integrated into a php file:
or can i skip Curl and directly post all the variablbes with a php form
You can definitely use PHP. Check out this code that
@wgbartley cooked up.
There’s at least a half dozen PHP proxies/wrappers in the forums already, but I wanted one that was a little more flexible. This one should take whatever GET or POST request you throw at it, append your access token, and then pass it on to the Spark...
Reading time: 4 mins 🕑
Likes: 19 ❤
I’m not sure if this is remotely what you’re looking for, but it’s sending RGB values to the Core nonetheless. Thought you might be able to use some of it: