Network 2#
Information about the controller’s second network interface is available in the protocol_interface
namespace. In trigger action scripts the protocol_interface
namespace is added directly to the environment; in IO modules it is in the controller
namespace, i.e. controller.protocol_interface
.
Properties#
The protocol_interface
namespace has the following properties:
Property |
Value Type |
Value Example |
---|---|---|
|
boolean |
|
|
boolean |
|
|
string |
|
|
string |
|
|
string |
|
For example:
if protocol_interface.has_interface == true then
ip = protocol_interface.ip_address
end