//Initial test of calling a function using IFTTT
int ledPin = D2;
void setup(){
pinMode(ledPin, OUTPUT);
Particle.function("emailSwitch", emailSwitch);
}
int emailSwitch(String){
digitalWrite(ledPin,HIGH);
delay(1000);
digitalWrite(ledPin,LOW);
}
Click to Expand
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .