system.device.getDeviceHostname
This function is used in Python Scripting.
Descriptionβ
Returns the hostname of the device.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.device.getDeviceHostname()
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | deviceName | The name of the device in Ignition. |
Returnsβ
The hostname of the device. The value will display null if the device doesn't have a hostname.
Scopeβ
Gateway, Vision Client, Perspective Session
Code Exampleβ
Code Snippet
# The following example displays the device hostname
# for the device as entered in Ignition.
print system.device.getDeviceHostname(deviceName)