Can we dynamically enable/disable device connections?

We are connecting to a device using TCP driver on a port. We need to close this connection after completion of process, so another gateway can connect to this device on same port.
Is it possible to enable/disable device connection using scripting?.

1 Like

system.device.setDeviceEnabled(deviceName, enabled)

1 Like


edit: Jae wins!

Thank you @jpark @Kevin.Herron for your quick reply