system.vision.getGatewayAddress
Backwards Compatibility
This function replaces system.util.getGatewayAddress. Any scripts containing Vision Client scoped functions that were replaced with system.vision syntax will still work to maintain backwards compatibility. Only the system.vision variations will appear in the Script Editor's autocomplete popup.
This function is used in Python Scripting.
Description​
Returns the address of the Gateway with which the Client is currently communicating.
Client Permission Restrictions​
This scripting function has no Client Permission restrictions.
Syntax​
system.vision.getGatewayAddress()
Parameters​
Nothing
Returns​
String - The address of the Gateway with which the Client is communicating.
Scope​
Vision Client
Code Examples​
Example #1
# This code would open up the gateway config page.
address = system.vision.getGatewayAddress()
system.vision.openURL("%s/web/config/" % address)