winIDEA SDK
connect_to_winidea_version.py
1# This script is licensed under BSD License, see file LICENSE.txt.
2#
3# (c) TASKING Germany GmbH, 2023
4
5import isystem.connect as ic
6
7connectionMgr = ic.ConnectionMgr()
8
9connectionConfig = ic.CConnectionConfig()
10connectionMgr.connect(connectionConfig.start_always())
11port = connectionConfig.getUdpDiscoveryPort()
12connectionMgr.disconnect_keep()
13connectionMgr.connect(ic.CConnectionConfig().host('').udpDiscoveryPort(port))
14
15debugCtrl = ic.CDebugFacade(connectionMgr)
16
17debugCtrl.download()