Developer UI -- Subscriptions tab
The contents of this page have not been updated to properly describe the developer interface in version 1.0 of the pico engine.
Suppose that we followed the instructions in the Pico to Pico Subscriptions Lesson and created the pico system shown there, but with one Mischief pico and three Thing picos. Suppose further that we manually created a Thing 4 pico as a child of the Mischief pico. These picos might then look like this:
Now, we'll depart from the procedure suggested in the lesson, and use the UI to create a subscription between the Mischief pico and its new child pico, Thing 4. We'll click on Thing 4 and then on it's Subscriptions tab, where we'll be informed:
So, we'll click on its Rulesets tab and install the required ruleset:
and then back to its Subscription tab, where we'll propose a subscription to the "well-known" channel of the Mischief pico (which we will have copied from its Channels tab):
Clicking on the "wrangler:subscription" button creates an "outbound" subscription request:
We can see in the Mischief pico's Subscriptions tab this subscription request, where it is known as an "inbound" subscription which we examine and prepare to accept:
Having accepted the inbound subscription, it now joins the other "established" subscriptions:
The established subscription now shows up on the My Picos page as a magenta dashed line joining the picos which now have a subscription between them:
We notice that subscriptions are a different kind of relationship than the parent-child relationship. Meanwhile, back in the Thing 4 pico, we can see the established subscription in its Subscriptions tab:
and as always on this tab, the UI allows us to propose additional subscriptions.
Copyright Picolabs | Licensed under Creative Commons.