system.device.setDeviceHostname

Description

Changes the hostname of a device. Used for all ethernet based drivers.

Syntax

system.device. setDeviceHostname( deviceName, hostname )

  • Parameters

String deviceName - The name of the device in Ignition.

String hostname - The new IP address or hostname.

  • Returns

nothing

  • Scope

All

Code Examples
Code Snippet
#Example 1:
system.device.setDeviceHostname("CLX", "10.10.1.20")