Restart Gateway Network Connection from script?

No, because IA doesn't promise to keep SDK APIs backwards compatible, and implementation details do change from time to time. Module authors are expected to suck it up deal with it.

However, there are publicly available free modules that expose a gateway/designer/vision context, like my Integration Toolkit module and Paul's open source Ignition Extensions.

Just know that anything you do in jython with a context object is subject to breakage on Ignition upgrades, and IA support will ignore your whining about it.

4 Likes