How can I store a reference to the device I am subscribing to?

This so far works perfctly!

Only question is how do I get a ref to the agent from the ActivatedEvent?

edit: I mean, in the same WaitForActivation function context.