What can we improve?

Documentation

(Edit)

ConnectParent

Requires: IP-Symcon >= 4.0

void ConnectParent (string $Parent GUID)

Parameters

Parent GUID GUID of the parent instance

Returns

No Return

Description

The function connects the instance with an existing compatible parent instance. If this is not available, one will be created and subsequently connected.
A list of the available moduleIDs (GUID) can be found HERE.

The norm for this function is a device module which wants to attach itself to a splitter. A new one is only created if there is no splitter.

Example

public function Create() {
 
    // Never remove the line!
    parent::Create();
 
    // Connect to an existing splitter or create a new one if necessary
    $this->ConnectParent("{46C969BF-3465-4E3E-B2A5-E404FB969735}");
 
}
Deutsche Webseite verfügbar
Go to cart
Any questions?