« Back to Product

Documentation

IPS_GetModuleListByType

Require: Symcon >= 3.3

 array IPS_GetModuleListByType (int $ModuleType) 

Parameters

ModuleType
Value Constant Description
0 MODULETYPE_CORE Core
1 MODULETYPE_IO I/O
2 MODULETYPE_SPLITTER Splitter
3 MODULETYPE_DEVICE Device
4 MODULETYPE_CONFIGURATOR Configurator
5 MODULETYPE_DISCOVERY Discovery
6 MODULETYPE_VISUALIZATION Visualization

Returns

An array of all GUIDs of modules in IP-Symcon of the type ModuleType, given as strings. The order of the entries is not guaranteed.

Description

The function determines the GUIDs of all modules within IP-Symcon of the type ModuleType. The IDs are listed in an array of strings.

Example

print_r(IPS_GetModuleListByType(MODULETYPE_CORE));

/* returns e.g.:
Array
(
    [0] => {2D8B0172-166C-45B0-B979-61A787809E22}
    [1] => {CCC52C33-D77A-4AE9-A6CF-462F152532A0}
    [2] => {11842D31-3CA4-4F1B-BBA9-E4A0FE1873AF}
    [3] => {4CB91589-CE01-4700-906F-26320EFCF6C4}
    etc. ...
)
*/
Any questions?