Page 3 of 3

Re: Comparing Device Objects [Solved]

PostPosted: Fri Mar 23, 2018 8:45 am
by jay (support)
You can subscribe at any point in your plugin's execution. However, that's of limited value really since there currently is no way to unsubscribe. It's on the list but unclear when it'll make it into a build.

Re: Comparing Device Objects [Solved]

PostPosted: Fri Mar 23, 2018 9:02 am
by DaveL17
Thanks Jay - that's what I thought you might say. I've settled on an approach that actually seems to work pretty well. I have a flag (True or False as the case may be) and if the flag is changed then I invoke a plugin restart. If the flag is True, subscribe -- otherwise don't subscribe.

Mine is a pretty fringe case for the Multitool plugin and won't seem out of place given its intended purpose.

+1 for unsubscribe. :D

Re: Comparing Device Objects [Solved]

PostPosted: Mon Oct 15, 2018 2:43 pm
by autolog
Hi Dave,
Just wanted to say a BIG THANK YOU for taking the trouble of getting this all worked out - your code example is proving very useful in helping to debug my new TRV plugin (currently in development) :D

Re: Comparing Device Objects [Solved]

PostPosted: Mon Oct 15, 2018 3:57 pm
by DaveL17
Hey, even a blind squirrel finds a acorn once in a while!

Glad that it’s been helpful.


Sent from my iPhone using Tapatalk