int controlLed(String command); void setup() { pinMode(7, OUTPUT); digitalWrite(7,LOW); // register the cloud function Particle.function("particle", controlLed); // the name of function on IFTTT } void loop() { // this loops forever } // this function automagically gets called upon a matching POST request int controlLed(String command) { // look for the matching argument "coffee" <-- max of 64 characters long if(command == "on") { digitalWrite(7,HIGH); return 1; } else if(command == "off") { digitalWrite(7,LOW); return 1; } else return -1; }