Skip to content

Commit be264d0

Browse files
committed
Merge pull request particle-iot#242 from eholk/patch-1
Fix headers tab
2 parents 5aa0ba4 + 61c0747 commit be264d0

File tree

1 file changed

+8
-8
lines changed
  • src/content/guide/tools-and-features

1 file changed

+8
-8
lines changed

src/content/guide/tools-and-features/ifttt.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,11 @@ You must have firmware on your Particle device, but nothing else is necessary. B
324324
November 13, 2015 at 6:02pm
325325
```
326326

327-
## Actions
327+
## Actions
328328

329-
### Publish an event
329+
### Publish an event
330330

331-
#### Firmware requirements
331+
#### Firmware requirements
332332

333333
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().
334334

@@ -367,7 +367,7 @@ You must have firmware on your Particle device, but nothing else is necessary. B
367367

368368
Complete documentation on using [Spark.subscribe() is here.](/reference/firmware/#spark-subscribe-)
369369

370-
#### Action fields
370+
#### Action fields
371371

372372
**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.
373373

@@ -381,17 +381,17 @@ You must have firmware on your Particle device, but nothing else is necessary. B
381381
**is this a public or private event?** Select either private or public.
382382

383383

384-
### Call a function
384+
### Call a function
385385

386386
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".
387387

388-
#### Firmware requirements
388+
#### Firmware requirements
389389

390390
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.
391391

392392
Complete documentation on using [Spark.function() is here.](/reference/firmware/#spark-function-)
393393

394-
#### Action fields
394+
#### Action fields
395395

396396
**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.
397397

@@ -402,7 +402,7 @@ You must have firmware on your Particle device, but nothing else is necessary. B
402402

403403
**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.
404404

405-
## FAQs
405+
## FAQs
406406

407407
- How often should I expect IFTTT to check my triggers?
408408

0 commit comments

Comments
 (0)