Requires: IP-Symcon >= 2.7
boolean IPS_SetConfiguration (integer $InstanceID, string $Configuration)
InstanceID | ID of the instance |
Configuration | The configuration as string |
If the command succeeds, it returns TRUE, otherwise FALSE. |
This command sets the planned configuration for InstanceID to Configuration. It needs to be applied via IPS_ApplyChanges to affect the instance.
// Set the configuration for the ModBus instance with the ID 12345 IPS_SetConfiguration(12345, '{"DataType":3,"WriteAddress":1,"ReadAddress":0,"Poller":3600000,"ReadOnly":false,"EmulateStatus":true,"Factor":0.0}'); IPS_ApplyChanges(12345); // Apply new configuration