What can we improve?

Documentation

(Edit)

IPS_GetInstanceListByModuleType

array IPS_GetInstanceListByModuleType (integer $ModuleType)

Parameters

ModuleType
Value Description
0 Core
1 I/O
2 Splitter
3 Device
4 Configurator
5 Discovery
6 Visualization

Returns

An array of integer values ​​of all IDs of the instances of the type InstanceType in IP Symcon

Description

The command determines the IDs of all instances of the given ModuleType. The IDs are listed in an array. If there is no instance of the requested type, the array is empty.

The list only contains objects of the type ModuleType. The command IPS_GetInstanceList can be used to list all existing instances.

Example

$allInstances = IPS_GetInstanceListByModuleType(1); // lists only I/O Instances
print_r($allInstances);          
 
/* returns e.g.:
Array
(
    [0] => 37659
    [1] => 18326
    etc. ...
*/
Deutsche Webseite verfügbar
Go to cart
Any questions?