If this has been covered or is documented, please just point me in the right direction. I’m not getting anything from searches using the terms I can think of. . . .
I’m thinking about an application where it would be nice if a SmartApp could spawn/instantiate a virtual switch. I would code the SmartApp to respond to this switch appropriately (maybe an on-off switch for the app if you wanted to be able to manually disable it without having to uninstall and then re-install, for example)
Ideally, for ease-of-use, the SmartApp would do the following automagically:
Spawn or instantiate the virtual switch with predetermined labeling/naming or, perhaps, even custom graphics. So, when it showed up in the things view, the user would recognize it as part of the SmartApp they just installed.
Subscribe to the events coming from this specific switch without the user having to select it.
Maintain some sort of linkage to the SmartApp so that if the SmartApp is uninstalled, the virtual switch is also deleted automagically
So, is this contemplated and/or supported? If so, is there documentation, samples, threads for me to review on the subject?