winIDEA SDK
Loading...
Searching...
No Matches
test_is_attached.py
# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
#
# (c) TASKING Germany GmbH, 2023
import isystem.connect as ic
def test_isAttached():
connMgr = ic.ConnectionMgr()
cfg = ic.CConnectionConfig()
cfg.start_always()
print("Connecting...")
connMgr.connect(cfg)
print(f"\tIs attached: {connMgr.isAttached()}")
print("Disconnecting...")
connMgr.disconnect_close(bSaveAll=False)
print(f"\tIs attached: {connMgr.isAttached()}")
if __name__ == "__main__":
test_isAttached()