What code do I flash my photon so that it works with IFTTT?

Tags: #<Tag:0x00007fe228da1c10>


I need to have a trigger. I have to hook the particle up to a buzzer and a button.

int buttonPin = D2;
int buzzerPin = D3;

void setup() {
    pinMode(buttonPin, INPUT);
    pinMode(buzzerPin, OUTPUT);
    particle.function("buzz", buzzerOn);
    particle.function("silent", buzzerOff);

void loop() {


Wellcome to the community :+1:

However, as a first time poster politely asking a question for help rather than merely stating your need would show some courtesy to the community you hope to get help from.

One important step in here is

Also the docs do help - look and use the search feature there first


Not much of an answer …but there are Particle IFTT Nodes and you just set up a particle Publish and and a particle subscribe and enter the info into the IFTT node along with your information it should work