I have a Photon with two functions that I’m trying to call from a webpage.
motionUp & motionDown
My API string looks like this (data replaced to protect the innocent)
When I paste that in a browser I get a “Unknown Variable: false” error
Using the Particle Console the function work just fine.
Not sure what the issue could be.
If it’s just in the browser that’s an HTTPS GET request and to call functions I believe they need to be HTTP POST which is why using curl to test functions is the recommendation.
Look at this old tutorial I wrote for how to do it: