In this exercise you will create a dispatcher in one personal event network that sends events to subscribers. You will learn how to use the event:send()
action from the event library to interact with event subscribers and how to use event channels.
Create two additional picos by signing up for two Kynetx accounts besides the one you used for the Foursquare exercise.
Note: if you're using GMail, you can create aliases by appending <text> to the username. So, if you're GMail address is foo@gmail.com, you can send email to foo+hello@gmail.com or foo+45@gmail.com and the mail will get to you. This makes it convenient to create test accounts from a single email address. |
foreach
to loop over the subscription map (foreach
) and the event:send()
action to send a location:notification
even to each subscriber.location_catch
rule that listens for location:notification
eventslocation_show rule
that shows the location in SquareTag (see (Classic) Quickstart for SquareTag). The purpose of going further is to see that different PENs can respond to the same event with different rules.
location_catch
rule from above