« Back to Product

Documentation

IPS_GetConfiguration

Require: Symcon >= 2.7

 string IPS_GetConfiguration (int $InstanceID) 

Parameters

InstanceID

ID of the instance

Returns

If the function is executed successfully, it returns the configuration of the instance as a string.

Description

Returns the configuration of the instance with the ID InstanceID as a string.

Example

// Read the configuration of instance 12345 and output it via "echo".
$config = IPS_GetConfiguration(12345);
echo $config;

// Example output of a ModBus instance:
// {"DataType":3,"WriteAddress":0,"ReadAddress":0,"Poller":3600000,"ReadOnly":false,"EmulateStatus":true,"Factor":0.0}
Any questions?