You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/guide/tools-and-features/ifttt.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -324,11 +324,11 @@ You must have firmware on your Particle device, but nothing else is necessary. B
324
324
November 13, 2015 at 6:02pm
325
325
```
326
326
327
-
## Actions
327
+
## Actions
328
328
329
-
### Publish an event
329
+
### Publish an event
330
330
331
-
#### Firmware requirements
331
+
#### Firmware requirements
332
332
333
333
This action has IFTTT publishing an event, so your Particle device needs to subscribe to that event. These are complementary; a Spark.subscribe("myEventName") watches for a publish("myEventName") and runs a function when it sees this matching event name. This means that even though this action is called *Publish* an event, your firmware needs to include Spark.subscribe().
334
334
@@ -367,7 +367,7 @@ You must have firmware on your Particle device, but nothing else is necessary. B
367
367
368
368
Complete documentation on using [Spark.subscribe() is here.](/reference/firmware/#spark-subscribe-)
369
369
370
-
#### Action fields
370
+
#### Action fields
371
371
372
372
**Then publish (Event Name):** This may be autopopulated by the Trigger you have chosen, however you'll want to delete that and write in the Event Name that you have defined in your firmware. Also known as topic, event name, or channel.
373
373
@@ -381,17 +381,17 @@ You must have firmware on your Particle device, but nothing else is necessary. B
381
381
**is this a public or private event?** Select either private or public.
382
382
383
383
384
-
### Call a function
384
+
### Call a function
385
385
386
386
It's important to note that if you turn off the board that is attached to this action while your recipe is still live, the IFTTT servers may disable your recipe. This is easy to fix, just turn it back on again. Your default IFTTT settings are set up to send you an email when your recipe encounters a serious issue (like not having a device to run the requested function). You can always change these by clicking on your username at the top of the IFTTT menu and selecting "Preferences".
387
387
388
-
#### Firmware requirements
388
+
#### Firmware requirements
389
389
390
390
This is very similar to using a Spark.function() as a trigger, only you won't be using any values it returns. The same setup on the firmware side, and the example code above for Spark.function() as trigger, will work for this as well.
391
391
392
392
Complete documentation on using [Spark.function() is here.](/reference/firmware/#spark-function-)
393
393
394
-
#### Action fields
394
+
#### Action fields
395
395
396
396
**Then call (Function Name):** Select the function you'd like to use from the options in a dropdown menu. These options will be pulled from the Spark.function()s that are in the firmware flashed to any of your claimed Cores or Photons. IFTTT will list the first 4 function()s defined in your firmware.
397
397
@@ -402,7 +402,7 @@ You must have firmware on your Particle device, but nothing else is necessary. B
402
402
403
403
**with input (Function Input):** This is an optional field. It may be automatically populated with ingredients from the trigger that you chose (i.e. Twitter may put in something like "Favorite tweet: TweetEmbedCode"). If you don't have specific code in your function() to use this data, it's best to delete it. There will be cases when you'll want to send some specific input.
404
404
405
-
## FAQs
405
+
## FAQs
406
406
407
407
- How often should I expect IFTTT to check my triggers?
0 commit comments