Page 172 - Programming the Photon Getting Started With the Internet of Things
P. 172

there is nothing to add, so click Create Trigger. Now we can move on to the next step of
        setting up the “That” section of the recipe.

             Click the Particle icon from the list of action sources, and you will see a list of actions
        that can be done with your Photon, as seen in Figure 8.12.








































        Figure 8.12 Photon actions.


             Select the option Call A Function, and you will be asked to complete a list of action

        fields to set up the action. From the Then Call drop-down list you should see a list of
        functions that have been set up on your Photon board, if it is connected. You should see in
        this drop-down box a function called Twitter, which we set up in our code on the Photon.

        Delete the contents of the action field “with input” and type in this field “buzz,” which is
        going to be the value that we will pass through to our Photon board when the Twitter
        service has triggered, as shown in Figure 8.13.
   167   168   169   170   171   172   173   174   175   176   177