Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Warning no longer needed, Wrangler removes subscriptions of deleted child picos

...

Notice that the rule evaluates for each of the subscriptions for which the receiver role is "thing". In each case, it is able to reach that pico through Tx  which is the event channel identifier (ECI) established when the subscription was accepted.

Deleting subscriptions

Info
titleEngine Compatibility

Eventually, Wrangler will fully integrate subscriptions, so that when you delete a child pico any subscriptions it participates in will also be deleted. In the meantime, you may wish to programmatically delete such subscriptions before requesting the deletion of the child pico.

To delete a subscription, either of the picos which participate in the subscription would raise the event wrangler/subscription_cancellation including an attribute named "Tx" whose value is the ECI of the other pico in the subscription. For example, if one of the thing picos wanted to cancel its subscription, it might include the code shown in this rule fragment:

...