« Back to Product

Documentation

GetConfigurationForParent

Require: IP-Symcon >= 4.2

 string GetConfigurationForParent ()

Returns

Content of the configuration of the parent instance

Description

The configuration string is transferred to the parent instance. The instance reads the string and sets the entered values. Values read in via this function can no longer be changed via the configuration page.

Warning

If this function is not defined in its own module, nothing is changed by default and the parent instance remains freely configurable.

Example

$this->GetConfigurationForParent();

//Parent instance is a "SerialPort"
public function GetConfigurationForParent() {
	return "{\"BaudRate\": \"57600\", \"StopBits\": \"1\", \"DataBits\": \"8\", \"Parity\": \"None\"}";
}
Any questions?