Calling functions


Im new to Particle and have an issue with functions - it may be I am trying to do something which cannot be done.

I have created a function to turn an output on and off on a relay board photo depending on the string value that is sent. I also have an Internet Button photon and depending on which button is pressed I am trying to call my function with either the value set as On or Off. I can see that I do call the function from a web page, terminal etc but how do I/can I call it from another photon which is already linked to my account?

i realise that I could use IFTTT as a middle man but I was wanting to avoid this if possible. Can anyone point me in the right direction?


You could easily achieve this by using Publish and Subscribe.

1 Like