I have a script that opens a project, gets the project's top level device and tries to set its gateway and the soft-PLC's IP address. To get the gateway and set the address I tried both of the following code snippets: gateway = list(online.gateways)[0] top_device.set_gateway_and_ip_address(gateway, PLC_IP, int(PLC_PORT)) print("Set Gateway: {} | PLC: {}:{}".format(gateway.name, PLC_IP, PLC_PORT)) gateway = top_device.get_gateway() top_device.set_gateway_and_ip_address(gateway, PLC_IP, int(PLC_PORT))...
I have a script that opens a project, gets the project's top level device and tries to set its gateway and the soft-PLC's IP address. To get the gateway and set the address I tried both of the following code snippets: gateway = list(online.gateways)[0] top_device.set_gateway_and_ip_address(gateway, PLC_IP, int(PLC_PORT)) print("Set Gateway: {} | PLC: {}:{}".format(gateway.name, PLC_IP, PLC_PORT)) gateway = top_device.get_gateway() top_device.set_gateway_and_ip_address(gateway, PLC_IP, int(PLC_PORT))...