Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a new channel (pick any name and type you like). 
  2. Send an event to your pico using the new channel. 
  3. Do you get the same result? Why or why not? 
  4. Delete the channel.
  5. Resend the event using the deleted channel. What happens? Why?
  6. Send the event ecco/hello to your pico. What do you observe? Why? 
  7. Add a new rule that selects on echo/monkey and responds with "Hello Monkey" unless an event attribute named name is given, in which case it will respond with "Hello " followed by the given name. Hint: use the .defaultsTo() operator. use Use the .klog() operator to log the value that is used. 
  8. Repeat the previous exercise using the ternary conditional instead of the .defaultsTo() operator. 

...